Hi there, just looking for tips when using XML parsers
I have a xml dcument that contains variuos element which are normally handeled in a hirachy hence a DOM parser works perfectly.
however I am hoping to be able to acces each element within the xml document independant of the hirachy normally build by the DOM parser.
here is what I am thinking just need your opinions as well as any sample code you might know of.
I am thinking of using the SAX parser directly and writing event handelers to handel the various elements that are extracted, would this be the best way to split up the topology into single elements or should I rather make indepentant xml documents containing each element (this) seems like the hard way ???
any pointers
cheers
I have a xml dcument that contains variuos element which are normally handeled in a hirachy hence a DOM parser works perfectly.
however I am hoping to be able to acces each element within the xml document independant of the hirachy normally build by the DOM parser.
here is what I am thinking just need your opinions as well as any sample code you might know of.
I am thinking of using the SAX parser directly and writing event handelers to handel the various elements that are extracted, would this be the best way to split up the topology into single elements or should I rather make indepentant xml documents containing each element (this) seems like the hard way ???
any pointers
cheers
