Hi anywaz i am able to solve the problem thanks to Dean reply. If anyone is facing the same problem they can directly contact me :)
On Aug 25, 1:27 pm, Rahul <[email protected]> wrote: > Hi, > I don't understand how come this issue is not related to gwt.GWT > parser which is import com.google.gwt.xml.client.XMLParser; > has a function to remove white spaces so its common sense for someone > to think that there are predefined functions in GWT which does the > reversed functionality of that, so that the xml file can be retrieved > and seen in a nice output manner. > > Yeah, I agree i should not have posted the urgent tag, except that I > still agree this is an GWT issue. > > On Aug 25, 7:07 am, Frank Argueta <[email protected]> wrote: > > > Perhaps you should learn Java and also learn how to solve your > > problems instead, especially if its urgent to you - which does not > > make your issue urgent to anyone else. Please stop posting questions > > not related to GWT on this forum. > > > On Aug 24, 11:50 pm, Rahul <[email protected]> wrote: > > > > 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 -~----------~----~----~----~------~----~------~--~---
