platform: vb.net 1.1 (its pretty much the same for c# that's why posting it here)
input: an xml document in one line...
output: need to insert a newline after each element..
problem: try to serialize it using xmldocument.serialize (although dont' even need to call it reading the document in to it and saving does it just as well)...but get this weird string "[]"
<!DOCTYPE BatchResponse004 SYSTEM 'BatchResponse004.dtd'> is changed to
<!DOCTYPE BatchResponse004 SYSTEM "BatchResponse004.dtd"[]>
can't figure out where did this [] came from?
would appreciate any help!!!
Chongo85 pointsPosted Dec 8, 2007, 5:07 AM EST
Also in an xml file a newline needs to be in hex and not "\n" it looks like this:
<xsl:text> </xsl:text>
<xsl:text> </xsl:text>
I might not be hitting what your asking, reply if you need more.