You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by Saliya Ekanayake <es...@gmail.com> on 2007/08/19 23:07:23 UTC
[Axiom]Issue with parsing processing instructions
Hi all,
I tried to parse the following XML using Axiom,
<?xml version="1.0"?>
<?xml-stylesheet href="doc.xsl"
type="text/xsl" ?>
<!DOCTYPE doc SYSTEM "doc.dtd">
<doc>Hello, world!<!-- Comment 1 --></doc>
<?pi-without-data ?>
<!-- Comment 2 -->
<!-- Comment 3 -->
When I get the iterator for children from the OMDocument and traverse
through it all I get is the first processing instruction,
i.e.
<?xml-stylesheet href="doc.xsl"
type="text/xsl" ?>
can anyone tell me any reason for this ? or is this simply a bug in Axiom ?
Thanks in advance
--saliya
--
Saliya Ekanayake
http://www.esaliya.blogspot.com
http://www.esaliya.wordpress.com