[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] [no subject]
hi , i'm using xerces parser. when i do doc.normalize(); where doc is a Document object it's not functioning the way it should. that's Interface Node Normalize() Puts all Text nodes in the full depth of the sub-tree underneath this Node , including attribute nodes, into a "normal" form where only markup (e.g., tags, comments, processing instructions, CDATA sections, and entity references) separates Text nodes, i.e., there are neither adjacent Text nodes nor empty Text nodes. this is just a part of xml but on serialization i still see empty text nodes. <?xml version="1.0"?> <root> <CoApplicantMain Value="2"> <CoApplicant> <ConsumerInfo> <Salutation>Mr</Saluta me> <OtherIncomeSource>Business</OtherIncomeSource> <MonthlyHousingPayment>2000</Monthl fAcctNum>4400</CreditRefAcctNum> </CreditReference> <CreditReference> <CreditRefName>CR > <BankRefPhone>87113123</BankRefPhone> <BankRefDateOpened>19980505</BankRefDateOpened> y>Norwood</City> <State>MA</State> <PostalCode>02062</PostalCode> <Country>USA</Country reditReferenceMain Value="2"> <CreditReference> <CreditRefName>CRDReference1</CreditRef RefAcctNumber>12132 </BankRefAcctNumber> <BankRefAcctBalance>35000</BankRefAcctBalance> it's fairly obvious take for example the first line <root> <CoApplicantMain Value="2"> <CoApplicant> <ConsumerInfo> <Salutation>Mr</Saluta now after normalization it should be <root><CoApplicantMain Value="2"><CoApplicant><ConsumerInfo><Salutation>Mr</Saluta with no dangling whitespaces. can anybody help?/ thanks shravan XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|