It's not a secret anymore!*
The moose likes XML and Related Technologies and the fly likes IDREF use in DOM 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 "IDREF use in DOM" Watch "IDREF use in DOM" New topic

IDREF use in DOM

Jo Mo

Joined: Jun 06, 2001
Posts: 3
I am trying to utilize IDREFs from within the DOM. I know that this is possible when using XSLT and performing a transform. MSXML parser provides a convenience method on their XMLDOMDocument object that returns the node indicated by an IDREF. Within code it is then possible to read the IDREF attribute value and quickly obtain the referenced node.
Is this type of behavior possible with any Java parser? I am currently using JAXP (which allows the use of compliant parser) but I have also been working with Xerces.
Any thoughts or ideas would be greatly appreciated.
subject: IDREF use in DOM
Similar Threads
Confusing - defer-node-expansion
Need help in modifying XML text value using DOm parser
XML parsing
Getting comment data using SAX....
Using DOM - Can I get the line number for a node