The XML document that I am processing contains elements like this:
<link>http://3d-ve.unisys.com/sites/Innovations/Lists/Innovations/DispFo
rm.aspx?ID=1</link>
However, when I load the document like so ...
Document fromDocument = new SAXReader().read(url);
List<Element> nodeList = fromDocument.selectNodes("//item/link",
"/");
Iterator nodeListIterator = nodeList.iterator();
while (nodeListIterator.hasNext()) {
Element linkElement = (Element)nodeListIterator.next();
System.out.println("title=|" + linkElement.getText() + "|");
}
It seems to strip out the part of the text after the "?ID=1" part of the
text at the end like so
<link>http://3d-ve.unisys.com/sites/Innovations/Lists/Innovations/DispFo
rm.aspx</link>
How can I prevent it from doing so?
Thanks in advance,
Alex
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
dom4j-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dom4j-user