• 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

Is XSLT replcement for Parsers

 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All

I want to know can XSLT be called a replacement for the DOM parsers if we need to modify the XML files.

Thanks in Advance
Ankur
 
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The XSL stylesheet itself is XML. So the source and the stylesheet need to be parsed, and applied on the source to produce possibly another XML. It need not be DOM. Again to make sense of the resulting XML file, you have to parse it using a parser. So we really cannot do away with parsers. Ofcourse there are alternatives to DOM.
 
Ankur Srivastava
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok fine I understood that. But does that mean that with XSLT we do away with using the parser(DOM etc) API? That means that XSLT again internally might be using parser but from a user perspective we only need to write another xml doc using XSLT to transform my original XML document into some other form.

I hope I don't sound confused

Thanks
Ankur
 
reply
    Bookmark Topic Watch Topic
  • New Topic