A couple actually:
I had some XML like this:
<?xml version="1.0"?>
<!-- THis is a comment -->
<properties>
<client>
<threadsafe>false</threadsafe>
<GUI-type>simple</GUI-type>
</client>
<server id="jimmy">Server Stuff here
<db name="Jim">
<connection>
<URL>http://www.digitalsymbiosis.net</URL>
<name>jdcasey</name>
<password>nothing</password>
</connection>
<connection>
<URL>http://www.digitalsymbiosis.net</URL>
<name>jdcasey</name>
<password>nothing</password>
</connection>
This is a test. This should be the server/db property...
Sure.
</db>
<connections>
<limit>5</limit>
<initial>1</initial>
</connections>
</server>
</properties>
When I grab the Document and do
selectSingleNode("/properties/client/threadsafe"); I get an exception that
the item is not a node, I need to use getObject... Can someone tell me what
I am doing wrong?
Also, is ther a way to add a comment to a Node? I see methods for
document.addComment, but not ode.addComment. Did I miss something?
Finally, I can't seem to get relative XPath exp to work. In the above,
/properties/server gives Server Stuff here, but server or properties/server
(both in document.selectSingleNode() return null.
Jim
Jim Brain, [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
"Researching tomorrow's decisions today."
(319) 369-2070 (work)
Systems Architect, Individual ITS, Life Investors Insurance Company of
America
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user