Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

1 Neutral

About karthikin

  • Rank
  1. This is my input xml file: <MyTest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.test.com/test"> <MyHubs xsi:nil="true" /><MyLanes xsi:nil="true" /> When i serilaize it i'm getting the output xml in this format: <MyTest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.test.com/test"> <MyHubs /><MyLanes/> How can i maintain the same format for the output xml file as exactly as the input file??
  2. This is my xml file: <?xml version="1.0" encoding="UTF-8"?><CONTACTS><CONTACT><FirstName>Arun</FirstName><LastName>Arun_Neelam</LastName><Email>nuraaa_iceee@yahoo.co.in</Email></CONTACT><CONTACT><FirstName>Arun</FirstName><LastName>Arun_Neelam</LastName><Email>nuraaa_iceee@gmail.com</Email></CONTACT></CONTACTS> I want to have the output in the following way: <?xml version="1.0" encoding="windows-1250"?><CONTACTS> <CONTACT> <FirstName>Arun</Fi
  3. I have an xml file and I want to how can i remove the white-space in the xml file.For example this is my xml file: <?xml version="1.0" encoding="UTF-8"?><CONTACTS><CONTACT><FirstName>SandfordFrankie</FirstName><LastName>Frankie Sandford</LastName><gmail/><yahoo/><URL>http://www.facebook.com/FrankieSandfordApprovedPage</URL><Facebook-ID/></CONTACT><CONTACT><FirstName>Julien </FirstName><LastName>Foder</LastName><gmail/><yahoo/><URL/><Facebook-ID/></CONTACT>&
  4. Sorry guys found the solution. The below code works fine. Thanks guys. function closeWindow() {window.close();if (window.opener && !window.opener.closed) {window.opener.location.reload();} }
  5. Hi Friends,I'm working on XUL, I have a window that opens another window. When the child window closes I want to refresh the contents of the parent.This is my first window(sundayevening.xul), which has a function to open the child window(iframetest.xul) function edit(){var windowObjectReference = window.openDialog("chrome://hello/content/iframetest.xul","iframetest", "Height=600, width=1024,resizable,scrollbars=yes,status=1" );}var sURL = unescape(window.location.pathname); function refresh(){ window.location.href = sURL;} This is my second xul file(iframetest.xul), here i have a button t
  6. Hi Guys,I use XSLT function to generate a unique id for my xml file <xsl:value-of select="generate-id(.)"/> and the output is "N65539".Then I used the same function and run the XSLT processor in Firefox XUL for the same XML file, the output of the id is "id0x03bb5600" in this format.How can i specify certain type to generate a unique id?This function generate id for <Customer-ID> </Customer-ID> in my XML file. Output 1: <Customer-ID>N65539</Customer-ID>Output 2: <Customer-ID>id0x03bb5600</Customer-ID>Thanks for your support.
  7. Hi guys, I have a xml file and I append a new contact in my XML file from XUL.When i append a new contact I want to generate a ID to my new customer contact in my xml file using XSLT.Is it possible to load my XSLT file through my xml file and save it? Please give me a suggestion guys!!! Thank you.My xml file: <?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="idgenerator.xsl"?><CONTACTS><CONTACT><Customer-ID>N65539</Customer-ID><FirstName>Ben</FirstName><LastName>Foden</LastName><email></email>&l
  8. I couldn't get the values of my XML file in my XUL tree. I have a problem with my query expr here: <query expr="*"> <assign anonid="fulltext" var="?FULLTEXT" expr= "concat(Customer-ID,FirstName,LastName,gmail,yahoo,URL,Facebook-ID)"/> </query>Please check my full code below. Thanks for you support in advance. <tree editable="false" id="myTodoListTree" flex="1" seltype="multiple"datasources="file://D:/xmlparserinxul/final.xml" ref="*" querytype="xml" > <treecols> <treecol id="pde" label="Customer-ID" flex="1" persis
  9. Her is the link: //function from http://puna.net.nz/archives/Code/Mozilla%2...cal%20files.htm
  10. HI, I'm able to edit, add new contact in my XML file using java-script. Please have a look at this code:function saveFile(output, savefile) { //var savefile = "c:\\mozdata.txt"; try { netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); } catch (e) { alert("Permission to save file was denied."); } var file = Components.classes["@mozilla.org/file/local;1"] .createInstance(Components.interfaces.nsILocalFile); file.initWithPath( savefile ); if ( file.exists() == false ) { alert( "File Updated Successfully "); fil
  11. <?xml version="1.0" encoding="UTF-8"?><CONTACTS><CONTACT> <PDE-Identity>N676767</PDE-Identity> <FirstName>Dido</FirstName> <LastName>Lorence</LastName> <gmail/> <yahoo>dido.lorence@yahoo.com</yahoo> <alcatel-lucent/> <URL/> <Facebook-ID/></CONTACT></CONTACTS> How can i get the value of my PDE-Identity and delete all the childNodes including the <CONTACT> using Javascript, DOM Method.Thanks Guys!
  12. You are right! Could you please explain to me how could I check for PDE-Identity element in each contact and get the remaining values.I have a for loop to check for the number of characters of the search item how could I proceed further?Could you explain to me in detail with some code. Thank you very much!
  • Create New...