By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,952 Members | 915 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,952 IT Pros & Developers. It's quick & easy.

Can SAX locate a single note deep within an XML tree?

P: n/a
Hi,

I have an XML document that, at some points, nodes are about several
levels deep.

For example:

<?xml...
<root>
<node>
<node />
<node>
<node />
<node>
<node />
</node>
..
..
..etc

At the moment I am using DOMXML but as it requires more memory / CPU
usage I am looking into other options. I dont need to modify the XML
tree but instead locate specific nodes (navigating to next siblings,
child nodes and parent nodes) and get attribute values. Is this
possible using SAX?

Cheers

Burnsy

Jun 19 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
bizt wrote:
Hi,

I have an XML document that, at some points, nodes are about several
levels deep.

For example:

<?xml...
<root>
<node>
<node />
<node>
<node />
<node>
<node />
</node>
.
.
.etc

At the moment I am using DOMXML but as it requires more memory / CPU
usage I am looking into other options. I dont need to modify the XML
tree but instead locate specific nodes (navigating to next siblings,
child nodes and parent nodes) and get attribute values. Is this
possible using SAX?

Cheers

Burnsy


Hi Burnsy,

AFAIK SAX is not available for PHP, but maybe this helps:
http://www-128.ibm.com/developerwork...ry/wa-php4sax/
and
http://nl2.php.net/xml also contains a lot of links to possibly usefull
resources.

Regards,
Erwin Moller
Jun 20 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.