This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes Generic XML parsing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Generic XML parsing" Watch "Generic XML parsing" New topic

Generic XML parsing

MilindN NSalvi

Joined: Apr 22, 2003
Posts: 2
Is there a parser which can parse xml independent of dtd and xml schema structure. I mean eventhough I change xml schema (or dtd), I do not have to modify code for parsing the associated xml file.
Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
The DOM and SAX APIs for XML parsing (part of J2SE 1.4) are not dependent on the existence of a DTD or XSD. In fact, I can't name a single parser that does require the document to be "validatable".
Or did I misunderstood your question?

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Generic XML parsing
Similar Threads
Can I have both DTD and schema delcaration for single XML file?
CDATA Whitespace issue
Question: is this possible in XML?
DTD Required for XSL processing?
referencing another xml