J
JM
Hello,
Most of the examples I've seen with XMLReaders, serialization, etc,.
involve a text file on a file system. Does anybody have a start to
finish VB.NET example of reading an XML Document object (binary) and
parsing it? The object I'm receiving is w3c compliant. I have
somewhat of a Java example (below), but I would like to know how to do
it in VB.NET. Thank you in advance.
import org.w3c.dom.Document;
import weblogic.apache.xml.serialize.OutputFormat;
import weblogic.apache.xml.serialize.XMLSerializer;
import java.io.StringWriter;
protected String convertDocumentToString(Document argDocument) throws
Exception {
StringWriter sw = new StringWriter();
OutputFormat of = new OutputFormat(argDocument,"UTF-8",false);
XMLSerializer xs = new XMLSerializer(sw,of);
xs.serialize(argDocument);
return sw.toString();
}
Most of the examples I've seen with XMLReaders, serialization, etc,.
involve a text file on a file system. Does anybody have a start to
finish VB.NET example of reading an XML Document object (binary) and
parsing it? The object I'm receiving is w3c compliant. I have
somewhat of a Java example (below), but I would like to know how to do
it in VB.NET. Thank you in advance.
import org.w3c.dom.Document;
import weblogic.apache.xml.serialize.OutputFormat;
import weblogic.apache.xml.serialize.XMLSerializer;
import java.io.StringWriter;
protected String convertDocumentToString(Document argDocument) throws
Exception {
StringWriter sw = new StringWriter();
OutputFormat of = new OutputFormat(argDocument,"UTF-8",false);
XMLSerializer xs = new XMLSerializer(sw,of);
xs.serialize(argDocument);
return sw.toString();
}