xml

XSL Transform XML

Hi all, I have some xml in the following format: <fileExport> <rows> <row id="0"> <columns> <column id="0"> <name>Date Time</name> <value>2010-10-2 23:00:00 GMT</value> </column> <column id="1"> <name>Primary</name> <value>100.1</value> </column> ...

Send HTML Texarea content to XML File

I'm wanting to use an XML file to show some messages in a flash application. I'm wanting to populate this XML file using a simple HTML form with a textarea and when a user submits the content it will post it to the XML file. The XML file looks like this: <messages> <msg>This is a sample message</msg> </messages> I'm presuming this req...

XML Schema Binding / Object Model Framework in Cocoa

New to XSD here. Has anyone found or written a framework for working with XML schema object model in Cocoa/Obj-C? What I really need is the ability to define permitted types of modifications to an NSXMLDocument, as described in an XSD File. This includes defining sequences of child elements, list of attributes and their permitted valu...

Do web browsers process the "xmlns" attribute?

At W3schools an article on XML Namespaces states: Note: The namespace URI is not used by the parser to look up information I have a very simple XML file: <?xml version="1.0" encoding="utf-8"?> <foo> <bar>Hi!</bar> <button xmlns="http://www.w3.org/1999/xhtml"&gt;Click Me!</button> </foo> Opening this file in Chrome or Firef...

Custom XML binding causes word doc to lose content control style/font

I am trying to do a word document that has content control bindings to an XML document that I am swapping out for custom.xml in the word docx package. When I created my original document, I added fonts and size and style to the content control text. This made it fit the rest of my documents style. Then when I swap in the custom XML con...

XSL: removing preceding folders on image path

I want to remove preceding './' and first folder if it is not named 'screenshots' So from <image href="./folderx/screenshots/page1.png"> <image href="./screenshots/page2.png"/> <image href="./views/screenshots/table/screenshots/page3.png"/> to <image href="screenshots/page1.png"> <image href="screenshots/page2.png"/> <image href="...

Global declarations within Xml Schema

a) Why must global element and attribute declarations always belong to a namespace and as such must always be qualified within instance documents? b) Are local element/attribute declarations ( with their form attributes set to unqualified) still part of a schema’s target namespace, even though they aren’t associated with any namespace i...

Xml Schema namespace

1) I realize namespaces are a means of differentiating between different schemas/vocabularies specified using XML Schema, but I don’t understand why it’s a good idea that a namespace ( for which the schema is developing a vocabulary ) is specified within the schema itself ( via targetNamespace attribute ). a) Wouldn’t it be better if w...

PHP 5.3.3 fails to validate XML against nested XSD's... plz help!

After upgrading from PHP 5.2.8 to 5.3.3, the new libxml_disable_entity_loader(false) function does not seem to work on Windows via command line to a PHP file on a network share. More specifically, DOMDocument::schemaValidate() fails with XSD files that contain multiple levels of nested include()'s to other XSD files on a network share. ...

how to bind xml api url in datagrid in asp.net

hi I am new in XML and wondering if you point out how to bind xml api url in gridview. thanks. ...

How to correctly parse an XML document with arbitrary namespaces

I am trying to parse somewhat standard XML documents that use a schema called MARCXML from various sources. Here are the first few lines of an example XML file that needs to be handled... <?xml version="1.0" encoding="UTF-8" standalone="no" ?> <marc:collection xmlns:marc="http://www.loc.gov/MARC21/slim" xmlns:xsi="http://www.w3.org/200...

Transform &amp; in XSLT?

Hello Stackoverflow! I'm relatively new to XSLT. I've come across an issue that I don't know how to get around. I have an pretty large XML document that I am trying to transform to into another smaller, refined XML document. The large XML document has this style: <Property> <name>Document name</name> <value>SomeValue</value> ...

ServingXML : Separating nodes with sub-nodes

I am using to ServingXML to parse an xml file which has a format like- <Accounts> <Account> ... Some Data ... <Invoice> ... Some Data ... <LineItem> ... Some Data ... </LineItem> <LineItem> ... Some Data ... <...

How can I programmatically determine the XML elements that can be inserted next?

When I am editing an XML document that has an XmlSchema, how can I programmatically determine the elements that can be inserted next? I am using C# and I already know which element I am in. Is there an MSXML method I can call or something else? Thanks. ...

Android proper use of setId()?

I am working on a gauge set that will have multiple faces(views) of a gauge. Also the set must be able to be expanded or shrink according to use ie maybe a linkedlist. When I set the gauge/view thereof up with a hard coded xml id and put the gauge into a gallery, it kind of works. However, I need to add multiple of these gauges into the ...

Creating local XML Feed from remote URL and displaying in xsl/asp/html

The title pretty much says it all! If anyone could help it would be amazing, I've been searching for hours and found nothing specific. All I have is the feed URL which I need to import, style and incorporate somehow. Our site's in ASP. Is there a feed src I can use in xml to import the feed directory and style in xslt? Any info, m...

Using XSLT Apply-Templates to conditionally select nodes

Let's say I have an xml document like this: <director> <play> <t>Nutcracker</t> <a>Tom Cruise</a> </play> <play> <t>Nutcracker</t> <a>Robin Williams</a> </play> <play> <t>Grinch Stole Christmas</t> <a>Will Smith</a> </play> <play> <t>Grinch Stole Christm...

How to add xml header to dom object

I'm using Python's xml.dom.minidom but I think the question is valid for any DOM parser. My original file has a line like this at the beginning: <?xml version="1.0" encoding="utf-8" standalone="yes"?> This doesn't seem to be part of the dom, so when I do something like dom.toxml() the resulting string have not line at the beginning....

Retrieving data from API and display it.

I have a link which is returning data in xml. I don't know how may i fetch data from api and display it. I want to fetch data from provided link like http://api.testdata.co.in/a/pn-1?koid=1234&amp;dfr=12.14.127.10 . Any help ? ...

parsing XML with PHP need to display the embedded HTML as markup

I'm writing a simple atom XML parser with PHP I have trouble displaying the proper content inside the <content> tag if there is additional HTML tag within. Ex. If I want to parse the following XML <entry> <title>Test entry #3</title> <id>http://example.org/article3&lt;/id&gt; <updated>2006-10-03T13:14:34Z</up...