xml

Using Castor for Single Value classes

I have some XML to ingest that is set up like this <project> <client>Some client</client> <description>some description</description> </project> The Objects I need to unmarshal this data to are Project and Client. How do I set up my castor mapping for this? <class name="Project"> <field name="description" type="string" /> ...

Is there something similar in ASP.NET to PHP's SimpleXML

If I want to convert my PHP application to ASP.NET… what do you recommend and why? I'm currently using PHP's simplexml_load_string() method because it's, well, …simple. For example, for PHP to process an http request in the form of XML I just use: $FILERAWDATA = file_get_contents("php://input"); $xml = simplexml_load_string($FILERAW...

TSQL stored procedure and XQuery?

Hello, I want to write a stored procedure that queries XML files after I have input a certain string pattern to look for. I'm already stuck at the input parameters, consider the following XML-document. <root> <container> <element>A</element> <option>1</option> </container> <container> <element>B</element> ...

Why isn't the HL7 standard using XML?

I am new to HL7 and the first thing that came to my mind was, why isn't this format using XML instead? There are a handful of parsers and there are some serious inconsistencies among vendors. For those new to the health care software business I recommend this read http://www.interfaceware.com/hl7_version2x.html ...

Problems defining my own Android theme

Is there anything wrong with this XML? I don't get any compile time errors, but anytime I try to edit it, Eclipse gives me a nullpointerexception. Why? /res/values/styles.xml <?xml version="1.0" encoding="utf-8"?> <resources> <!-- Base application theme is the default theme. --> <style name="Theme" parent="android:Theme...

XSL Test Question, what is this testing?

I have this line: <xsl:when test="document('foo.xml')/field_config/field_rename/field[@old_name = $name]/@new_name"> foo.xml: <field_config> <field_rename> <field old_name="Modified" new_name="modification"/> <field old_name="Created" new_name="creation"/> </field_rename> </field_config> In general, what is this testing? ...

Linux XML parser library

Anybody knows good Linux XML parser library available, and how to set it up and use it? Thanks. ...

OutOfMemoryException loading xml document winmo 6.1

I am using c# on a windows mobile 6.1 device. compact framework 3.5. I am getting a OutofMemoryException when loading in a large string of XML. The handset has limited memory, but should be more than enough to handle the size of the xml string. The string of xml contains the base64 contents of a 2 MB file. The code will work when the xml...

Scan xml for links using ajax, apply links to another ajax call to scrape page and return data.

So, I've tried to look around before posting, but I can't seem to find an answer. My dilemma: I have an XML file that houses url links to various pages(all similar, diff products). By using jQuery and AJAX, I am able to pull the links from the XML file. I then want to be able to pass those links, in order, to another AJAX call that w...

Removing node using xquery

Hi, I am trying to remove a child node from a parent node using xquery. Say, I have an entry shown below in my xml: <entry> <id>36</id> <title>Engineering Village Author Tool</title> <updated>2009-09-30T12:55:42Z</updated> <libx:libapp> <libx:entry xmlns:libx="http://libx.org/xml/libx2" src...

Resize AlertDialog to fit image exactly

Hey guys, I have the following AlertDialog with an image inside it: As you can see there is a small gap just above and just below the image. I'd like to remove that gap. My layout xml looks like: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id=...

Flash AS3: Using "string" to pass in E4X XML querry

I want to be able to do something like var XMLquerry:String = "a1.a2.a3"; var parserVal:XML = parserMethod(XMLquerry); // or var parserVal:XMLList = parserMethod(XMLquerry);` and get an output something like <a3>Some value</a3> Important: And I want to be able to replace the output at a1.a2.a3 so using decedents is out of question...

Schematron validation and uniqueness

Hi, I'm trying to write some Schematron rules and one of them is supposed to check, if elements are unique in the scope of parent element. So I have an example xml structure: <abc> <elem id="qw0"> <a>1</a> <a>2</a> <a>3</a> </elem> <elem id="qw1"> <a>1</a> <a>2</a> <a>3</a> <a>3</a> </elem> </abc> M...

Good python XML parser to work with namespace heavy documents

Python elementTree seems unusable with namespaces. What are my alternatives? BeautifulSoup is pretty rubbish with namespaces too. I don't want to strip them out. Examples of how a particular python library gets namespaced elements and their collections are all +1. Edit: Could you provide code to deal with this real world use-case using...

Flex XML Tag Attribute Value / Property Parsing

I'll try to ask this in a way that makes some sense. I have an RSS feed, within Flex I have connected to the feed via HTTPService, the XML structure is as follows (not exact, but for the purpose of the question). I am able to walk down the xml and access the data within the title and link nodes with success but when I get the the descri...

Android - How to decrypt an XML file?

I am trying to to download and decrypt an encrypted XML file. I have implemented the download part and have tested with an unencrypted file and it works fine. However I now need to be able to download an XML file that has been encrypted using AES and the key "XXXX" So I am only concerned with decryption as the encryption on the XML fi...

Javascript Flowchart designer in style of CKeditor

Hello everyone. I've learned here, on stack overflow, that what I need is called "flow-chart". I need to allow user to draw in a browser (using his mouse) a flow-chart that would represent a flow of a process or an algorithm. This flow-chart should contain decisions (yes/no diamonds), tasks (rectangles), arrows, labels etc. Flow-chart ...

XML syntax specification for <! > type tags

Having pored over the XML W3C Recommendation 1.0, I'm still confused regarding the general nature of the <!FOO ...> type tags. What is the rationale behind these tags, how are they parsed, and are there any generalizations to this syntax. To me they seem like an almost ad hoc hack added to XML in order to facilitate stuff which wasn'...

What do I use to display CSV data as a chart?

I have a set of data stored in text files, which I have now via Perl put into a CSV file. The data in question now needs to be displayed in a chart. What suggestions do you have for doing this? XML was suggested, but XML can't put the data into a chart itself. Ideally what would happen is: the data would be decoded from the text file, ...

SQL Server 2008 - Shredding XML to tables need to keep UNKNOWN DATE value as NULL

Hello. I was wondering if someone could help I've successfully been able to import an XML document to a table with an XML data type in SQL Server2008, how ever when I try and shred from that table to a staging table any DATE values without an entered date are inserted to the staging table as 1900-01-01. Is there a cleaver way i'm mi...