Hopefully that works with XMLBeans because prefix declarations are maintained
:-)
But this won't:
http://foobaz"/>
because insignificant space is not tracked. When the documentation refers to
the "original, native XML structure", it means the XML structure as defined by
the XML and XML Inf
For XML to be equivalent, things like namespace prefixes, whitespace*, etc
can be different. With Strings, this is not the case.
For example:
http://foobaz"; />
and
http://foobaz"; />
Are equivalent in XML.
If you are hoping to do an == check using the above with strings it will
ALWAYS fail with S
Sorry - but no good
>From the javadoc
toString
String toString()
Returns an XML string for this XML object.
The string is pretty-printed. If you want a non-pretty-printed string, or
if you want to control options precisely, use the xmlText() methods.
/Nicolai
CSC ? This is a PRIVATE message.
try parse.toString();
From: Nicolai Odum [mailto:[EMAIL PROTECTED]
Sent: 15 September 2008 15:09
To: user@xmlbeans.apache.org
Subject: RE: Very simple question (I think)
I will try again :-)
Sorry for my pore english skills.
When I say invalid i mean that
I will try again :-)
Sorry for my pore english skills.
When I say invalid i mean that the generated hash value no longer is
valid...I can work with the xml beans structure but I need acces to the
untouched, native, raw xml string that I used as a argument to the
factory.
XmlObject parse = Xml
Note that without the generated code or jar file you will not be able to
access the values. You can parse the tree though.
From: Andrew Mansfield [mailto:[EMAIL PROTECTED]
Sent: 15 September 2008 14:59
To: user@xmlbeans.apache.org
Subject: RE: Very simple questio
I just ran the following Junit test with no problems...
public void test() throws XmlException, IOException{
String xmltext = new
String("testvalue");
XmlObject xmlObject = XmlObject.Factory.parse(new
ByteArrayInputStream(xmltext.getBytes()));
Node rootnode = xmlObject.getDomNode().getFirstChi
Sorry bad example
It's was just suppose to be psudo code
String xml = "big xml document";
I have tried it with many big valid xml documents - without luck.
/Nicolai
"Andrew Mansfield" <[EMAIL PROTECTED]>
15-09-2008 15:36
Please respond to
user@xmlbeans.apache.org
To
cc
Subject
RE: V
I think you need to parse a valid source document first. Then you can
get access to the underlying XmlObject.
Regards,
From: Nicolai Odum [mailto:[EMAIL PROTECTED]
Sent: 15 September 2008 14:32
To: user@xmlbeans.apache.org
Subject: Very simple question (I thin
Hello
On xmlbeans.apache.org it says that XMLBeans provide
It provides a familiar Java object-based view of XML data without losing
access to the original, native XML structure
I am using XMLBeans on a xml structure that is signed with a hash value so
*nothing* must change before the xml
10 matches
Mail list logo