xml

exslt.org extensions

I am trying to use an exslt extension in one of my transformations. I got an example off this site about how to concatenate xml files into one. I have implemented the namespace and the element prefix correctly, but every time I try and run it from my command line I recieve the following error... Cannot find a matching 1-argument functi...

How to Post XML data to a Web Service in MVC

I am very confused on this topic. I have a webservice on another machine. All I need to do is post the xml to the url and return the results to the view. I have not found any working examples of this. Also there seems to be different ways of doing it. What is the best way to post xml data to a url and display the results in a view? Tha...

Dynamic folder list output with XML input

Is there an easy way to create a folder structure output from an XML input. Below is a sample of the XML input I am trying to parse: <file name="tmpFile1" path="{{Base}}\folder1\V1\Samples\DotNet\C#\VS2005\tmpFolder1" /> <file name="tmpFile2" path="{{Base}}\folder1\V2\Samples\DotNet\C#\VS2005\tmpFolder2" /> Hoping I can get an out...

Why am I getting this warning: 3594: parent is not a recognized method of the dynamic class XML?

It's coming from this line of code: var dropTargetXML:XML = XMLTemplate.template.component.section.question.(@question_questionID == nNode.parent().@question_questionID)[0]; nNode is an XML node sent as an argument to the function this is called in. The code runs, and does everything expected but the compiler sends out that warning. D...

Android application

I have built my app, it basically parses some XML data from a web site. When I run it for the first time it gets the data, then the XML gets changed and I run the app again but it does not override the current data. How can I override them? Thanks ...

Frustrating XML Error, Flex, & OpenX

Hi, I'm trying to get Flex and OpenX to work together. OpenX is returning XML. I've got two Flex classes that clean-up the XML and place the ads on my site (thank you Daryl Bowden). Unfortunately, I get Error #1090: XML parser failure, when I test it. And I can't figure out why. The first class is: package com.darylbowden.ads { imp...

Using XSLT to compare two nodes and emit XML containing attribute indicating whether value was updated, added, or deleted

Been programming front-end languages for a long time and I rarely encounter XSLT on a project. Well, here it is... We currently have some functions in our XSLT file that are comparing nodes and emitting XML that contains something like previousValue="Old value". This feature helps our users understand what changed when viewing the for...

Import XML file to excel with existing map using ExcelPackage in C#

How can I import xml file to existing excel template. I have a map (xsd). It has to be done on server. I used excelPackage , but couldnt find any documentation for the classes. More specific question: how do I write in C# the following code from VB.NET Dim xmlSchema As String = "c:\Schema1.xsd" Map = XL.ActiveWorkbook.XmlMaps.Add(xm...

How can I determine why a call to IXMLDOMDocument::load() fails?

I am trying to debug what appears to be an XML parsing issue in my code. I have isolated it down to the following code snippet: HRESULT CXmlDocument::Load(IStream* Stream) { CComVariant xmlSource(static_cast<IUnknown*>(Stream)); VARIANT_BOOL isSuccessful; * HRESULT hr = m_pXmlDoc->load(xmlSource, &isSuccessful); return (h...

How load xml files, in IntelliJ IDEA

IntelliJ not find xml file under sources folder. example) src/net/saltfactory/domain/PersonSqlMap.xml but, If I copy it and past out folder, IntelliJ find xml file example) out/net/saltfactory/domain/PersonSqlMap.xml I hope that don't copy and past XML files to out folder help me ...

VB and XML Encoding (UTF-8)????

Guys...I really need your help.. I have this vb code where i will send a value typed in a textbox to MSMQ... Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click Dim mq As MessageQueue 'Dim format As XmlMessageFormatter Dim msg As Message 'Dim dec As XmlDeclaration ...

Open in memory XML string as an Excel workbook with out saving uisng windows Forms C#

Hi Guys, I have an excel string (which I built) in memory; the code looks something like this: public static void exportToExcel() { const string startExcelXML = "<xml version>\r\n<Workbook " + "xmlns=\"urn:schemas-microsoft-com:office:spreadsheet\"\r\n" + " xmlns:o=\"urn:schemas-m...

C# Foreach XML Node

I'm saving 2-dimensional coordinates on an XML file with a structure similar to: <?xml version="1.0" encoding="utf-8" ?> <grid> <coordinate time="78"> <initial>540:672</initial> <final>540:672</final> </coordinate> </grid> I can open the XML file and read it via the XmlTextReader, but how do I loop through the coordinates specifica...

@XmlElementRefs & @XmlElementRef annotatinos in Java

Can some please explain to me what do @XmlElementRefs and @XmlElementRef annotations mean in Java and what is their use.. EDIT: @skaffman okay, suppose I have one such collection @XmlElementRefs({ @XmlElementRef(name="ElementA", type=ClassA), @XmlElementRef(name="ElementB", type=ClassB) } ) List<Object> items; N...

How to add xml-stylesheet tags to an XML file using C# ?

Hello, I need to add the following code to the beginning of an XML file, while creating it: <?xml version="1.0" encoding="ISO-8859-1"?> <?xml-stylesheet type="text/xsl" href="colors.xslt"?> I'm sure there is a method for this, but I haven't found it yet. I'm using C#. Thank you ...

XSL - loop through sub nodes in XML

I whant to loop through a XML file thats look like this: <node> <cd name="td1"> <data value="cd1-0" /> <cd name="td2"> <data value="cd1-1" /> </cd> <cd name="td3"> <data value="cd1-2" /> </cd> </cd> <cd name="td4"> <data value="cd2-0" /> </cd> </node> This is the result that i what is this. ...

GWT compile error when crimson added to the libs

Once I add the crimson.jar file to the WEB-INF/lib folder my GWT compilation doesn't work anymore. See the output of my ANT GWT compilation target. gwtc: [echo] You can use -style OBF | PRETTY | DETAILED to generate default | debuggable | verbose GWT javascript [java] [ERROR] Failure while parsing XML [java] org.xml.sax.SAXNotRecogn...

php5 simple_xml_file parse error

Hello, I am trying to pass the XML code below, in the first instance using the php function simplexml_load_file. Currently the php code is incredibly simple as follows: if (file_exists('test.xml')) { $xml = simplexml_load_file('test.xml'); print_r($xml); } else { exit('Failed to open test.xml.'); } However on running th...

Group and filter XML data with XSL

I have the following XML code: <root> <options> <companies> <company url="http://www.brown.com"&gt;Brown LLC</company> <company url="http://www.yellow.com"&gt;Yellow LLC</company> <company url="http://www.black.com"&gt;Black LLC</company> <company url="http://www.bourdeaux.com"...

display XML data in PHP

My XML output looks like this... How do I display it in PHP? <row> <field name="seat_no">18</field> <field name="my_ticket_no">924403</field> <field name="pass_nm">abcd</field> <field name="pass_age">46</field> <field name="pass_sex">F</field> </row> <row> <field name="seat_no">19<...