xml

XSLT wont manipulate XML file accordingly

This is the XML file: <?xml version="1.0" ?> <?xml-stylesheet type="text/xsl" href="LabXSLT.xslt"?> <orders> <order> <customerid>2364</customerid> <status>pending</status> <item instock="Y" itemid="SD93"> <name>Flying By Roller Skates</name> <price>25.00</price> <qty>25</qt...

jQuery parsing XML to make slideshow

So I have a very long question for my code. Here are my requirements: Using jQuery XML parsing of images Must be a slide show Opacity on hover and show text in whiter full opacity With these piece i built this code. <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <meta http-equiv="Content-Type" content="text/...

Build a XML-RPC web service in C#

How do I build a XML-RPC web service in C#? ...

writting data into asp.net page in xml format using C#

Hi everybody I want to show my data to a asp.net Page using c# in XML format Plz anybody send some example with code. like - <person> <email>[email protected]</email> <dob>YYYY-MM-DD- HH:MM:SS</dob> <city>XYZ</city> </email> </person> So plz send some code with a good example. Thanks in Advance ...

Improving text extraction routine from XML

I've an XML file which contains no. of <TEXT> </TEXT> tags enclosing text. <TEXT> <!-- PJG STAG 4703 --> <!-- PJG ITAG l=94 g=1 f=1 --> <!-- PJG /ITAG --> <!-- PJG ITAG l=69 g=1 f=1 --> <!-- PJG /ITAG --> <!-- PJG ITAG l=50 g=1 f=1 --> <USDEPT>DEPARTMENT OF AGRICULTURE</USDEPT> <!-- PJG /ITAG --> <!-- PJG ITAG l=18 g=1 f=1 --...

I don't know how to choose the gui develop tech, can some guys give me any advices?

Hi!guys. I mainly work on c#, and wpf is my first choice when I make desktop software. But I am lack of c++ experience, and I want to develop some desktop software in c++, now I have some problem with the gui framework. I'm learning qt, and compared to wpf, I have much more code to write, I like the xml way to describe gui. But qt's xml ...

Is there a JavaScript API for XML binding - analog to JAXB for Java?

In Java, we work a lot with JAXB2. Object<->XML mappings are defined as annotations in Java classes: @XmlRootElement(name="usertask", namespace="urn:test") public class UserTask { @XmlElement(namespace="urn:test") public String getAssignee() { ... } public void setAssignee(String assignee) { ... } } JAXB runtime can read ...

C# XML Merging (2+ files)

I am having problem to merge 2 or more xml files into 1 using c#. I am doing it with DataSets: //ds1,ds2,ds3 are DataSets private void MyMethod() { ds1.ReadXml(tmpStream); ds2.ReadXml(tmpStream); ds1.Merge(ds2); } but i dont want to use DataSet. i am searching for another way. first XML is <?xml version="1.0" encodi...

in regards of finding all nodes that have an attribute that matches a certain value with scala

Hi, I saw the following example disccussed here previously, where the goal was to return all nodes that contain an attribute with an id of X that contains a value Y: //find all nodes with an attribute "class" that contains the value "test" val xml = XML.loadString( """<div> <span class="test">hello</span> <div class="test"><p>hel...

Different behaviors between XmlDocument.LoadXml and XDocument.Parse

Our project has been converted to use XDocument from XmlDocument few days ago, but we found a strange behavior while processing XML entity in attribute value with XDocument.Parse, the sample code as following: The XML string: string xml = @"<char symbol=""&#x0;"">"; The XmlDocument.LoadXml code and result: XmlDocument xmlDocument...

XML dsig validation fails after Axis WS client changes XML elements of xsd:any type

Hi, I use Axis 1 (v1.4) web service client to access a web service that exchanges XML data containing elements of xsd:any type. The XML as a whole is signed with an enveloped digital signature. The problem I experience is that Axis transforms the XML elements of xsd:any type by replacing the sign > with &gt;, < with &lt;, etc. Once I g...

XSD schema that allow random order

I'm try to design a XSD schema that allow elements to be in a random order and have maxOccurs="unbounded". My XML: <root> <key></key> <group></group> <group> <key></key> <key></key> <group> <key></key> <key></key> </group> </group> <key></key> <key></key> <group> <key></key> ...

Best Way To Place an SVG file in HTML

From my research, i understand there are three ways to place an svg file inside HTML: using embed: <embed src="plot1.svg" width="500" height="320" type="image/svg+xml" /> using object: <object data="plot1.svg" width="500" height="320" type="image/svg+xml" /> using iframe: <iframe src="plot1.svg" width="500" height="320"> </if...

Retrieving single node value from a nodelist

Hi, I'm having difficulty extracting a single node value from a nodelist. My code takes an xml file which holds several fields, some containing text, file paths and full image names with extensions. I run an expath query over it, looking for the node item with a certain id. It then stores the matched node item and saves it as $oldno...

Unknown recursions of a XML structure with SAX

I have to parse a XML structure in JAVA using the SAX parser. The problem is that the structure is recursive with an unspecified count of recursions. This still is not such a big deal the big deal is that I can't take advantage of the XML namespace functionality and the tags are the same on every recursion level. Here is an example of t...

Ignoring blank space while using substring-after in xsl

I have the following xml. <root query="Smith Antony Blah Jones"> And the following xsl to split the string into different variables. <xsl:variable name="query"> <xsl:value-of select="substring-before (root/@query, ' ')" /> </xsl:variable> <xsl:variable name="query1"> <xsl:value-of select="substring-before(substring-after(root/@que...

Android there is no ListView adapter resourceId

based on Hello-ListView turorial in Android, http://developer.android.com/resources/tutorials/views/hello-listview.html on the setListAdapter(new ArrayAdapter<String>(this, R.layout.list_item, COUNTRIES)); had an error because there is no R.layout.list_item previously i had followed the tutorial, created the file list_item.xml on ...

XML to XLS using java

How can I map the metadata to data. For example I only want LastName and Email from the xml file into the xls file. How can I select LastName and email from xml file and convert that into two column XLS file columns being Lastname and email. Thank you XML Document <root> <metadata> <item name="Last Name" type="xs:string" le...

Coop API - posting with PHP

I'm trying to do a simple post to a web service using CURL and their API but I'm getting a 422 response. My code looks like: include 'CurlRequest.php'; $secret_key = 'mykeyhere'; $group_id = 'group_id'; $postData = array( 'group_id' => $group_id, 'key' => $secret_key, 'status' => 'test' ); $curl = new CurlRequest('http://...

XStream Alias of List root elements

I want to be able to alias the root list element depending upon what type of objects are contained in the list. For example, this is my current output: <list> <coin>Gold</coin> <coin>Silver</coin> <coin>Bronze</coin> </list> And this is what I want it to look like: <coins> <coin>Gold</coin> <coin>Silver</coin> <coin>Bronze</coin> </...