xml

converting csv to xml with an xsd

I am trying to find a reusable way of taking a CSV file and generating an XML file from it that conforms to a specified XSD. I haven't really found a reusable approach for this. I have used Altova MapForce which lets me import a CSV file and XSD, do the mapping than generate code from this, but the code needs to be regenerated whenever t...

How do I get the entire XML string from a XMLDocument returned by jQuery (cross browser)?

I have tried and failed to find out how to get the entire XML string from the XMLDocument returned by a GET. There are a lot of questions on SO on how to find or replace specific elements in the object, but I can't seem to find any answer to how to get the entire document as a string. The example I'm working with is from here. The "do s...

Coldfusion - XML formatting a string returned from API call

We call an API that returns a string of XML-formatted data. We'd like to convert this string into a ColdFusion XML object, via XMLParse(). A problem occurs when special characters show up in the data values. For example, characters like this:   — – (yes, the raw data contains them in their HTML encoded equivalent). Whe...

XML Timezone - Daylight Saving

I am currently handling concurrency on my page using a DateTime field. The data is passed through ASP.NET using an XML which comes with Timezone. So to adjust timezone I am adding 4 hrs to time received (EST) in my procedure and then comparing. Now it was all working fine till Nov 1st. Now the time I am receiving is 5 hrs behind the t...

how to select xml node using near element

Using XPath and the HTML Agility Pack, I need to select the destination text using color:#ff00ff. My HTML looks like this: <table> <tr style="color:#ff00ff"> <td></td> </tr> <tr> <td>destination</td> </tr> <tr> <td></td> </tr> <tr> <td>not destination</td> </tr> </table> ...

Convert XML into a Dataset

I'm trying to convert an XML document into a dataset that I can import into a database (like SQLite or MySQL) that I can query from. It's an XML file that holds most of the stuff in attributes. This is part of a Rails project so I'm very inclined to use Ruby (and that's the language I'm most comfortable with at the moment). I'm not sur...

Eclipse: auto format XML files on save

Is it possible to somehow auto-format when saving XML files in Eclipse? I know it's possible to do it for Java files, but I would like it to happen for XML files as well. Specifically, I'm using and loving the auto format feature for XML files while developing for Android, as Android is quite heavy on using XML files. ...

C# Search and Set Node Values

With my other question: http://stackoverflow.com/questions/1672750/c-showing-multiple-xml-data-entires-with-the-same-node-value I have one more question, in the part: XmlNodeList allNodes = doc.SelectNodes("/Lessons/Lesson[Date='01/01/2010']"); Is there a way to put a string with a value in it (that I already have setup) in the part ...

Adjusting Timezone - Convert XML DateTime to SQL DateTime

We are using TypedDataSet in our application. Data is passed to procedure in form of XML for insert/update. Now after populating DE with data, datetime remains the same though timezone information is added as below. Date in DB: 2009-10-29 18:52:53.43 Date in XML: 2009-10-29T18:52:53.43-05:00 Now when I am trying to convert below XML...

Using xml to load objects. Which is the best approach?

TinyXML I have a XML file that keeps a bunch of data that is loaded into objects. Right now, I have one giant method that parses the XML file and creates the appropriate objects depending on the contents of the XML file. This function is very large and imports lots of class definitions. Would it be better to each class type to do its ...

randomized placement of xml nodes with Actionscript

I have a flash ecard that I am working on and had one of those "wouldn't it be cool if..." moments! I would like find out if it is possible to: 1) load in an xml file that contains several names 2) Load each one of those names into a predefined movie clip which would display the name 3) randomize the placement of each name in a given s...

Android layout issue

So I have a webview I'd like to display as a dialog. I'd like the webview to fill the entire screen, except for a button below it that I'd like to stay at the bottom of the dialog regardless of how much content is in the webview. Currently my webview fills up the dialog just enough to push the button off the screen. I'm sure this is some...

How can I generate this XML page dynamically in C# / ASP.NET MVC?

I'm trying to create an XML file to conform to Indeed.com's Job Listing XML. It looks like: <?xml version="1.0" encoding="utf-8"?> <source> <publisher>Super X Job Site</publisher> <publisherurl>http://www.superxjobsite.com&lt;/publisherurl&gt; <job> <title><![CDATA[Sales Executive]]></title> <date><...

Output Access Table to XML with node

I'm trying to output data from an Access table as XML. The output looks like example A, what is required looks like example B. My current code to do this is shown below at example C If anyone could help it would be greatly appreciated. Example A: <inlineData inlineDataId="1"> <date>24 AUG, 2009</date> <regis>123456</regis> ...

Globalization of configuration files

Hi, I have multiple configuration files describing Addins to my system. I'm looking for a way to globalize some of the tags in the configuration file (i.e - support multiple languages) for example: in the file activity.xml i want to globalize some of the attributes: <?xml version="1.0" encoding="UTF-8"?> <Resource type="Activity" ...

Convert XML to table in SQL Server 2005.

If I pass in an xml parameter to a stored proc which looks like this: <ClientKeys> <ck>3052</ck> <ck>3051</ck> <ck>3050</ck> <ck>3049</ck> ... </ClientKeys> ...and then convert the XML to a temp table like this: CREATE TABLE #ClientKeys ( ClientKey varchar(36) ) INSERT INTO #ClientKeys (ClientKey) SELECT Param...

Ordered parsing of XML by jquery

I have a xml file like, <step_list Number="5"> <step Program="P1" Step="STEP01" Seq="1"> </step> <step Program="P2" Step="STEP02" Seq="3"> </step> <step Program="P3" Step="STEP03" Seq="2"> </step> <step Program="P4" Step="STEP04" Seq="5"> </step> <step Program="P5" Step="STEP05" Seq="4"> </step> ...

XElement.Elements() extension method?

Hello all I have an XML file that is loaded into an XElement. I want to count the number of PollEvent children that both exist and that satisfy some conditions. I have got the code working to count the number of PollEvents in total but when I come to filter this list I do not seem to be able to call .Where, I believe this to is due to...

XML template in Java

Hi, I need to generate xmls and these differ only in the values that the tags contain. Is it possible to create a template xml and then write only the values each time?(I do not want to go the jaxb way as these are small xmls and are not worth creating objects for them). Is this a good approach? Any thoughts / pointers will help me dec...

No able to acess xml element in VS 2008 after mounting the xml file "note.xml"

not able to access many xml element after mounting to the XMLDOM in VS 2008 it is not showing up in intelligence here is the code written in default.aspx <html> <body> <h1>W3Schools Internal Note</h1> <p><b>To:</b> <span id="to"></span><br /> <b>From:</b> <span id="from"></span><br /> <b>Message:</b> <span id="message"></span> <script...