• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to Set DOM to use double quote instead of single quote

 
Ranch Hand
Posts: 395
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am using DOM to create a XML file. During Attribute creation I need to specify DOM parser that it should use double quotes for the attribute values instead of single quote.
How to do this?
for Ex:

How to create attribute onchange for Input tag. ?
Regards,
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

How to create attribute onchange for Input tag. ?

Wouldn't this do?
 
L Goundalkar
Ranch Hand
Posts: 395
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well I can do that if I am creating DOM from scratch.
But the problem is I am using Tidy to convert HTML to a DOM which changes all the double quotes related to attribute node to single quote.
I searched Tidy API i couldn't figure it out, So i wanted to know if I can use a method on DOM to convert the attribute value quotes to double quote.
Hope I conveyed my problem.
Cheers.
[ November 23, 2003: Message edited by: L Goundalkar ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic