Hi, I got another writer XML Writer but i am still not able to add white spaces into it.
For example: i want a file like this <ns:transformerControl xmlns:ns="http://cbesb.bostechcorp.com/trn/ 1.1"><ns:formats><ns:input format="xsd" name="$ {cbesb_jbi_sa_proj}::src/formats/jdbc_request.xsd" root="jdbc_response"><ns:namespaces><ns:namespace prefix="cbns1" url="http://cbesb.bostechcorp.com/jdbc/1.0"/></ns:namespaces></ ns:input><ns:output format="hl7" name="${cbesb_esb_proj}::v2_2//ORU" root="ORU"><ns:namespaces><ns:namespace prefix="tns" url="http:// cbesb.bostechcorp.com/hl7/v2_2"/></ns:namespaces></ns:output></ ns:formats><ns:operationList><ns:operation class="OpDatabase" name="database" type="class"><ns:parameters><ns:property name="mode" value="Setup"/><ns:property name="variable" value="Connection1"/ ><ns:property name="connectionType" value="1"/><ns:property name="connectionFile" value="${cbesb_jbi_sa_proj}::src/database/ connections/SQLServer.dbc"/><ns:property name="driverName" value=""/ ><ns:property name="URL" value=""/><ns:property name="user" value=""/ ><ns:property name="password" value=""/><ns:property name="autoCommit" value="false"/><ns:property name="connectionRetries" value="3"/ ><ns:property name="connectionInterval" value="3000"/></ ns:parameters></ns:operation><ns:operation name="iterate" type="built- in"><ns:parameters><ns:source type="absolute" path="jdbc_response/rows/ row"/><ns:property name="context" value="Context1"/></ ns:parameters><ns:operationList> to be converted like this <?xml version="1.0" encoding="utf-8"?> <ns:transformerControl xmlns:ns="http://cbesb.bostechcorp.com/trn/ 1.1"> <ns:formats> <ns:input format="xsd" name="${cbesb_jbi_sa_proj}::src/formats/ jdbc_request.xsd" root="jdbc_response"> <ns:namespaces> <ns:namespace prefix="cbns1" url="http://cbesb.bostechcorp.com/ jdbc/1.0" /> </ns:namespaces> </ns:input> <ns:output format="hl7" name="${cbesb_esb_proj}::v2_2//ORU" root="ORU"> <ns:namespaces> <ns:namespace prefix="tns" url="http://cbesb.bostechcorp.com/ hl7/v2_2" /> </ns:namespaces> </ns:output> </ns:formats> <ns:operationList> <ns:operation class="OpDatabase" name="database" type="class"> <ns:parameters> <ns:property name="mode" value="Setup" /> <ns:property name="variable" value="Connection1" /> <ns:property name="connectionType" value="1" /> <ns:property name="connectionFile" value="$ {cbesb_jbi_sa_proj}::src/database/connections/SQLServer.dbc" /> <ns:property name="driverName" value="" /> <ns:property name="URL" value="" /> <ns:property name="user" value="" /> <ns:property name="password" value="" /> <ns:property name="autoCommit" value="false" /> <ns:property name="connectionRetries" value="3" /> <ns:property name="connectionInterval" value="3000" /> </ns:parameters> </ns:operation> <ns:operation name="iterate" type="built-in"> <ns:parameters> <ns:source type="absolute" path="jdbc_response/rows/row" /> <ns:property name="context" value="Context1" /> </ns:parameters> <ns:operationList> <ns:operation cl any suggestions anyone? I need it to work urgently On Aug 24, 11:45 am, Rahul <[email protected]> wrote: > Hi, > Confirmation, i opened my generated xml in XML notepad 2007, it added > white spaces automatically and then i saved and then send to the > application, it was giving me the desired output > > how should i add white spaces to my xml in gwt? also would i need to > add it on server side when i am saving the modified xml? > > Sincerely, > Rahul > > On Aug 24, 11:22 am, Rahul <[email protected]> wrote: > > > Hi, > > My gwt application modifies an xml document, and sends it to another > > application where the output is generated. Now for parsing with gwt, i > > had to remove the white spaces in it because if i didnt it was givin > > me an error. > > > Now my application wants my generated xml to have whitespaces in it, > > any idea how can I add whitespaces to my xml document through gwt? > > > Sincerely, > > Rahul --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
