Hi,
I have a requirement to $subject.
E.g. Below is a sample XML document.
<sequence>
<!-- Start Comment-->
<in>
<log category="DEBUG"></log>
</in>
<out>
<log category="DEBUG"></log>
</out>
<!-- End comment -->
</sequence>
Requirement is to retrieve below nodes only.
<!-- Start Comment-->
<!-- End comment -->
One implementation would be iterating through all XML Nodes and identify
nodes which has type "COMMENT_NODE". We can use method
OMContainer.getChildren()
which returns all nodes in the document.
Is there any other method of doing this in Axiom, rather than going through
all nodes?
Thanks
--
Jagath Ariyarathne
Technical Lead
WSO2 Inc. http://wso2.com/
Email: [email protected]
Mob : +94 77 386 7048
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev