To add on this, if we use the string inside <pre> tag and option <add-xml-space> then will it still validate the document for well-formed and clean XHTML?
Thanks, Mihir On Wed, Oct 31, 2012 at 11:22 AM, Mihir Das <[email protected]>wrote: > > Hi All, > > Can anyone tell me how to preserve space after node closure in xdmp:tidy? > > e.g: > > xdmp:tidy( "<doc><a>MarkLogic</a*> i*s rocking</doc>" , > <options > xmlns="xdmp:tidy"> > > <input-xml>true</input-xml> > </options>) > > Output: > > <status xmlns="xdmp:tidy"> > <message>No warnings or errors were found. > > </message> > </status> > <?xml version="1.0" encoding="UTF-8"?> > <doc> > <a>MarkLogic</a*>i*s rocking</doc> > > > Expected: > > <doc> > <a>MarkLogic</a*> i*s rocking</doc> > > > Thanks in advance! > Mihir > >
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
