[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

[no subject]

Subject:
From: "Shravan K. Mishra" <con_smishra@xxxxxxxxxxx>
Date: Tue, 20 Jun 2000 12:33:36 -0400
creditref


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


Current Thread
  • [no subject]
    • Shravan K. Mishra - Tue, 20 Jun 2000 12:33:36 -0400 <=

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.