xml

Parsing and Writing XML in MAC 10.3.9 Cocoa?

Hi, What is the Best way i can do Parsing or Writing into XML using cocoa for mac10.3.9.? Im mentioning the version of OS specifically because, i read in the documentation like, Mac 10.3.9 sdk does not support NSXML class.? I Found an OpenSource libaray (libxml), is it the only library i can use???? Please give me some suggestion regar...

How do I bind to XmlDataProvider whos source has a default namespace (xmlns) set?

I have XML similar to the following <?xml version="1.0" encoding="utf-8"?> <foo name="FooBar" xmlns="http://mydomain/myapp/ver/myschema.xsd"&gt; <bars v="test"> <bar bat="one"/> <bar bat="two"/> <bar bat="three"/> </bars> </foo> How do I map this in WPF, it works if I don't set the default namespace, ho...

Modify xsd:dateTime simple type to use different date-and-time separator

I have a legacy system that produces XML with timestamps similar to ISO 8601, but with space used to separate date and time. E.g. 2009-12-31 00:00:00. I would like to define a schema that defines the possible range for these timestamps. xsd:dateTimewould be well suited for that purpose, however, it uses T as the separator between date an...

XSLT: how to prevent the XSLT code from generating redundant blank-space in output xml ..

With my XSL code, whenever I delete an element .. It will introduce a blank-line-space in output xml .. which hampers the Tree-structure look of the XML .. Can you please suggest me .. How to get rid of it .. ? Here are sample the sample codes .. Sample XML: <tag1> <tag1_1>text</tag1_1> <tag1_2 delete="Y">text</tag1_2> <tag1_3> ...

how to convert the webpage to xml document using java?

The assumption is the webpage is coded with correct tags. How can I Convert it to the XML file? I think the most webpages can be viewed as dom tree...How can I convert it to XML file? ...

Gen public key from xml data file using M2Crypto for signature verification.

I have pub key in xml format: <RSAKeyValue><Modulus>xF9y25EXh8n99sXtU/JAsYTwML6PB7gSCE8tWw8Www2KBfDqohQBL8FMs8jzsDQa7WwoEmiVJ1resEC9YXJGbwQyWgb9qgooC9oSnCB/TkRdBybwby0DKuZOzq+609OBGkwWpgnS4QVCBc6eW+10l3qE3/2hKdcSV+08iRYp7zs=</Modulus><Exponent>AQAB</Exponent></RSAKeyValue> So i try thms like this: from M2Crypto import RSA from xml.do...

Issue with WPF DataBinding to XML file

I'm in the process of creating a message application in WPF, as part of this I have a listbox which shows all the messages currently avaliable with the authors Title and Name. Anyway I'm currently in the developing but the data I wish to show isn't appearing but the titles do (Author: and Title:). Please be aware my XML file is a test th...

Losing whitespace around escaped symbols in CDATA using Expat XML parser in C++

I'm using XML to send project information between applications. One of the pieces of information is the project description. So I have: <ProjectDescription>Test &amp; spaces around&amp;some &amp; amps!</ProjectDescription> Or: "Test & spaces around&some & amps!" <-- GOOD! When I then use Expat to parse it, my data handler gets ju...

How to break the tree structure of the XML document to desired one .. ?

It has been a great challenge for me to code XSLT to bring my desired output .. Here is my XML input .. which I am testing on .. <aaa id="1"> <bbb id="2">text1</bbb> <ccc>text2</ccc> <ddd id="3"> <eee att="4d">text3</eee> <fff> <ggg att="3d"> <yyy>text4</yyy> <iii attr="jj"/> </ggg> </fff> ...

How to convert Excel to XML using java?

Hi, i want to convert my input Excel file into the Output XML file. If anybody has any solution in java for how to take input Excel file and how to write to XML as output,please give any code or any URL or any other solution. Thanks, Mishal Shah ...

Dynamic Pageflip 3.5 - help needed changing a page

Hi, I have purchased a dynamic pageflip script from http://pageflip.hu/. Has anyone used it before? I have setup all the pages and all is well, however, I am having trouble changing the very first left hand page. (see image -http://img687.imageshack.us/img687/3350/pageflip.jpg). I have looked in both the .fla files and pagedate35.xml ...

How do I save updates in a GridView control in VB to an existing XML document?

I have an existing xml document with music playlist information, which is read into a GridView control in Visual Basic. I am now wanting to save any updates in the GridView to that xml document. How can I do this? Private Sub cboUsers_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cboUsers.Selec...

decimal-string() help xml/xforms

i am trying to round a number to 2dp and i am struggling i am trying to use the decimal-string method This is what I had <xf:bind nodeset="/stuff/price" calculate = "if(boolean-from-string(/stuff/amountOff), ((/stuff/items) * (/stuff/duration) * 0.8),/stuff/items* /stuff/duration)" /> This is what I tried <xf:bind n...

Using XSL include statements with variables

Hi all, I have a group of xsl sub stylesheets which i need to include into a parent stylesheet, all of which are contained in a directory below the parent. I have been using relative paths for the include statements however these now need to be changed full qualified paths. As these all share the same directory it makes sense to do thi...

Convert data objects to XML for use with XSLT

I am making a customer profile A how they are header and data about each visit. I have gotten my data straight into one of many data objects PersonHeader ph, and StoreVisits sv: oCustDetails = ActiveCustDetails.GetActiveCustDetails(custNumber, Convert.ToString(regionNumber)); ph.FirstName = oCustDetails.firstName; ph.LastName ...

Non-empty fields are empty in word

I have created a multicolumn custom field and deployed it in SharePoint. To be able to use the field values from my custom field I also deployed an event receiver to copy the three values from my custom field to three separate regular text fields. If the three text fields do not exist I create them with XML in code. I also make sure the ...

Remove the duplcated element and then sort them with Linq

I have an XML file : <School> <SchoolID>9</SchoolID> <SchoolID>3</SchoolID> <SchoolID>3</SchoolID> <SchoolID>3</SchoolID> <SchoolID>4</SchoolID> <SchoolID>1</SchoolID> <SchoolID>3</SchoolID> <SchoolID>9</SchoolID> <SchoolID>2</SchoolID> </School> The expecting results should be like: <School>...

problem with xsl apply-templates

It seems that my template is never called but the for loop works correctly. It prints "test" exactly the number of times the "car" node exists but "doStuff" doesn't seem to be accessed and "test2" is never outputted. Any ideas? <fo:table-body> <xsl:for-each select="car"> test <xsl:apply-templates select="car" /> </xsl:f...

How do I link an XSD to an XML file in Eclipse?

How do I link an XSD to an XML file in Eclipse? The xml file that I am editing is not in the same directory as the xsd file but both are in the workspace. ...

C# - HttpWebRequest - POST

I am trying to make an Http POST to an Apache web server. I am finding that setting ContentLength seems to be required for the request to work. I would rather create an XmlWriter directly from GetRequestStream() and set SendChunked to true, but the request hangs indefinitely when doing so. Here is how my request is created: priva...