xml

Is there a good Open Source, XSD based Web Editor?

I'm looking for a good open source web editor that will take xsd (or some other standard XML) and from that generate web forms that will enable the end user to generate standard xml (without knowing anything about xml obliviously). I took a look at kupu, but there doesn't seem to be much documentation and the site appears to no longer ex...

Using Flexigrid with an xml formatted source how do you specify how the xml is formatted?

I have my columns set as follows: colModel : [ {display: 'column1', name : 'column1', width : 200, sortable : true, align: 'center'}, {display: 'column2', name : 'column2', width : 100, sortable : true, align: 'left'}, {display: 'column3', name : 'column3', width : 100, sortable : true, al...

Trying to use RemoveChild() on XmlNodeList messes up my XmlNode collection

Hi there, I'm trying to remove a specific node from a XmlNodeList named listaWidths. This specific list has 5 items before I use RemoveChild(). But, after the RemoveChild() statement, the list stays only with 1 item. XmlNodeList listaWidths = xmlDoc.SelectNodes("/MsBuild:Report/MsBuild:Body/MsBuild:ReportItems/MsBuild:Tablix/MsBuild:Ta...

fullCalendar json with php in "agendaWeek"

<link rel='stylesheet' type='text/css' href='fullcalendar/redmond/theme.css' /> <link rel='stylesheet' type='text/css' href='fullcalendar/fullcalendar.css' /> <script type='text/javascript' src='fullcalendar/jquery/jquery.js'></script> <script type='text/javascript' src='fullcalendar/jquery/ui.core.js'></script> <script type='text/javasc...

XML invoice specification

I am writing an application which produces invoices. Yes, it sucks. I was wondering it there was any agreed upon DTD for invoices? It seems like everybody has their own format. Perhaps there is a collection of XSLTs for tranforming a common standard into lesser known formats? ...

XDocument unable to digest url in header if encountered twice

Hi there, I am consuming an xml response from a government gateway which contains a url in its root node twice (being firstly xsi:schemaLocation="http://www.govtalk.gov.uk/CM/envelope" and also xmlns="http://www.govtalk.gov.uk/CM/envelope") XDocument will only parse this if I pull out the second one (the xmlns one) from the node. Is ...

How to decide when to use XSD or DTD?

Hi, I am a bit confused whether to go for DTD or XSD when designing. Could any one please help? ...

How can I transform XML to invalid XML using XSLT?

I need to transform a valid XML document to the OFX v1.0.2 format. This format is more or less XML, but it's technically invalid and therefore cannot be parsed as XML. I'm having trouble getting my Xml transformation working because the .Net XslCompiledTransform object insists on interpreting the output as an XML document (which is fai...

validate XML with XSD in c++

Hi! Im pretty new to both XML validation and C++ (more familiar with Java..) so I guess this is a trivial question. If I have a XML file and a XSD schema, how is the best way to validate them? Id like to to this in c++ without using external libraries, or as little libraries as possible, is it possible? Other ideas of how this can be d...

Limiting XML read to 5 records

Hello, I have a xml file with 100 records, but I want it to limit it to just 5 records for ($i=0;$i<=5;$i++) { foreach($xml->entry as $result){ if ($result->updated == $result->published) { } } } When I put in the above code, it display one record 5 times. Thanks Jean ...

Grandchildren of an element (XPath)

I'm searching for a XPath expresssion, which gives me all grandchildren of an element. Is this correct: child/child/* ? ...

validating whether a element exists and has some specific value in xsl

how to check the tag exists and the value is 'On' do something in xsl please correct me., <xsl:if test="$status and $status='On'"> //do something </xsl:if> can we skip checking whether the tag exists and direclty check for the value. <xsl:if test="$status='On'"> //do something </xsl:if> is it a correct practice., ...

Java: How to parse XML comments using org.apache.xerces.parsers.SAXParser?

I managed to parse to comments from an XML file using javax.xml.parsers.SAXParser, but is there a way to parse comments in org.apache.xerces.parsers.SAXParser in Java? A simple example would be brilliant. thanks ...

Modify XML node but keep the XML file format intact

How may I modify a XML file without any change like attributes ordering, tag expansion and encoding? (My preference is DOM API) ...

The markup must be well-formed

Hi, I am beginer in SAX and Java. I am tring to read Information from not well formed XML File. When I try to use SAX or DOM Parser then I have this error: The markup in the document following the root element must be well-formed. My XML File looks like this: <format type="filename" t="13241">0;W650;004;AG-Erzgeb</format> <format t...

XmlNode.SelectNode with multiple attribute.

One of my nodes inmy xml file is as follows. <LOGIN_ID NAME="Kapil"> <SEARCH_ID>Kapil Koli</SEARCH_ID> <GUID>111</GUID> <FIRST_NAME>Kapil</FIRST_NAME> <LAST_NAME>Koli</LAST_NAME> <EMAIL_ID>[email protected]</EMAIL_ID> <PASSWORD>abc123**</PASSWORD> </LOGIN_ID> The code I am using is - XmlDocument document = ...

delete elements in xml?

i've got some elements in a xml document i want to delete. so i want to create another xml document without those elements. here is an example of how it looks like at the moment: <entity id="1000070"> <name>apple</name> <type>category</type> <entities> <entity id="7002870"> <name>mac</name> <...

Deserialized xml - check if has child nodes without knowing specific type

I have deserialized an xml file into a C# object and have an "object" containing a specific node I have selected from this file. I need to check if this node has child nodes. I do not know the specific type of the object at any given time. At the moment I am just re-serializing the object into a string, and loading it into an XmlDocume...

How do I get XML path by its value?

I need to get the xml path opf the xml file by providing the value of an xml child element as the input. For example: XML file: <?xml version="1.0"?> <document-inquiry xmlns="http://ops.epo.org"&gt; <publication-reference data-format="docdb" xmlns="http://www.epo.org/exchange"&gt; <document-id> <country>EP</country...

Attach XML object to REST POST in asp.net REST starter kit.

Hi, I'm using the REST starter kit in asp.net for the first time and having a bit of trouble. I've created some XML... String newOrganizationStrin = "<somexml></somexml>"; XmlDocument newOrganizationXml = new XmlDocument(); newOrganizationXml.LoadXml(newOrganizationString); Then I create an httpClient... HttpClient http = new HttpC...