Edoardo,

We'll extends XML formatter in future.

Best regards,
Mike Aizatsky.
------------------------------
IntelliJ Software, "Develop with pleasure!" http://www.intellij.com


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
On
> Behalf Of Edoardo Comar
> Sent: Wednesday, February 13, 2002 9:27 PM
> To: [EMAIL PROTECTED]
> Subject: [Eap-list] 602: xml layout unusable
> 
> Starting with unformatter xml like :
> 
> <?xml version="1.0"?>
> <SOAP-ENV:Envelope
> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> xmlns:cc1="http://www.capeclear.com/AV_POC.xsd";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/";>
> <SOAP-ENV:Body
> SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
> <cc2:AddressValidationByServiceId
> xmlns:cc2="capeconnect:AV_POC:sia_das_av/AddressValidation_v1">
> <target  xsi:type="cc1:CCReference">
> <reference xsi:nil="true"/></target><inquiryId
> xsi:type="xsd:string">Ramesh</inquiryId><customerInfo
> xsi:type="cc1:foobar_common.CustomerInfo">
> <companyCode
> xsi:type="xsd:string">ima</companyCode><custCarrierNameAbbr
> xsi:type="xsd:string">ima</custCarrierNameAbbr></customerInfo><tn
> xsi:type="xsd:string">303-683-8762</tn><accessParams
> xsi:type="cc1:foobar_common.AccessParams">
> <ahnListInd  xsi:type="xsd:boolean">true</ahnListInd><gsgReqInd
> xsi:type="xsd:boolean">true</gsgReqInd><unnumberedSS
> xsi:type="xsd:string"></unnumberedSS></accessParams><wireCenter
> xsi:type="cc1:foobar_common.WireCenter">
> <siteId  xsi:type="xsd:string"></siteId><npaNxx
> xsi:type="xsd:string">303683</npaNxx></wireCenter><area
> xsi:type="xsd:string">DNV</area><serviceAreaZipCode
> xsi:type="xsd:string"></serviceAreaZipCode><timeStamp
> xsi:type="cc1:sia_common.DateTime">
> <date  xsi:type="cc1:sia_common.Date">
> <dayOfMonth  xsi:type="xsd:short">9</dayOfMonth><month
> xsi:type="cc1:sia_common.eMonth">January</month><year
> xsi:type="xsd:short">2002</year></date><time
> xsi:type="cc1:sia_common.Time">
> <hour  xsi:type="xsd:short">10</hour><minute
> xsi:type="xsd:short">22</minute><utcOffset
> xsi:type="xsd:short">0</utcOffset><msecs
> xsi:type="xsd:short">0</msecs><seconds
> xsi:type="xsd:short">0</seconds></time></timeStamp><timeout
> xsi:type="xsd:int">10</timeout><requestPurpose
> xsi:type="xsd:string">PD</requestPurpose><authorization
> xsi:type="cc1:foobar_common.Authorization">
> <applicationId  xsi:type="xsd:string">ima</applicationId><password
>
xsi:type="xsd:string">ima</password></authorization></cc2:AddressValidat
> ionByServiceId></SOAP-ENV:Body></SOAP-ENV:Envelope>
> 
> 
> IDEA formats it as :
> 
> <?xml version="1.0"?>
> <SOAP-ENV:Envelope
> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> xmlns:cc1="http://www.capeclear.com/AV_POC.xsd";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/";>
>     <SOAP-ENV:Body
> SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
>         <cc2:AddressValidationByServiceId
> xmlns:cc2="capeconnect:AV_POC:sia_das_av/AddressValidation_v1">
>             <target  xsi:type="cc1:CCReference">
>                 <reference xsi:nil="true"/></target><inquiryId
> xsi:type="xsd:string">Ramesh</inquiryId><customerInfo
> xsi:type="cc1:foobar_common.CustomerInfo">
>                     <companyCode
> xsi:type="xsd:string">ima</companyCode><custCarrierNameAbbr
> xsi:type="xsd:string">ima</custCarrierNameAbbr></customerInfo><tn
> xsi:type="xsd:string">303-683-8762</tn><accessParams
> xsi:type="cc1:foobar_common.AccessParams">
>                         <ahnListInd
> xsi:type="xsd:boolean">true</ahnListInd><gsgReqInd
> xsi:type="xsd:boolean">true</gsgReqInd><unnumberedSS
> xsi:type="xsd:string"></unnumberedSS></accessParams><wireCenter
> xsi:type="cc1:foobar_common.WireCenter">
>                             <siteId
> xsi:type="xsd:string"></siteId><npaNxx
> xsi:type="xsd:string">303683</npaNxx></wireCenter><area
> xsi:type="xsd:string">DNV</area><serviceAreaZipCode
> xsi:type="xsd:string"></serviceAreaZipCode><timeStamp
> xsi:type="cc1:sia_common.DateTime">
>                                 <date  xsi:type="cc1:sia_common.Date">
>                                     <dayOfMonth
> xsi:type="xsd:short">9</dayOfMonth><month
> xsi:type="cc1:sia_common.eMonth">January</month><year
> xsi:type="xsd:short">2002</year></date><time
> xsi:type="cc1:sia_common.Time">
>                                         <hour
> xsi:type="xsd:short">10</hour><minute
> xsi:type="xsd:short">22</minute><utcOffset
> xsi:type="xsd:short">0</utcOffset><msecs
> xsi:type="xsd:short">0</msecs><seconds
> xsi:type="xsd:short">0</seconds></time></timeStamp><timeout
> xsi:type="xsd:int">10</timeout><requestPurpose
> xsi:type="xsd:string">PD</requestPurpose><authorization
> xsi:type="cc1:foobar_common.Authorization">
>                                             <applicationId
> xsi:type="xsd:string">ima</applicationId><password
>
xsi:type="xsd:string">ima</password></authorization></cc2:AddressValidat
> ionByServiceId></SOAP-ENV:Body></SOAP-ENV:Envelope>
> 
> 
> Which is unreadable!
> 
> Please consider a reasonbale xml layout.
> You already include JDOM in your libraries, so you might as well just
> use its formatter!
> Else, you could invoke TIDY that has some options.
> I'd like at least the option about attributre on the sm,ae line as the
> elemnt or on a new line, indented. An even better format would be to
> layout attributes on a new line if exceeding column NN (configurable).
> 
> 
> 
> ---
> Edoardo Comar
> Cape Clear Software
> 
> *** Download the NEW CapeConnect Three ***
> *** <http://www.capeclear.com/download> ***
> 
> 
> 
> _______________________________________________
> Eap-list mailing list
> [EMAIL PROTECTED]
> http://www.intellij.com/mailman/listinfo/eap-list


_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list

Reply via email to