xml

Finding difficult when i post xml document in my site

hi friends I am using a php and javascript codes to post my xml to a url. and i have posted it successfully from my local server. but when i tried it in site, i cant post my xml document to that url. what will be the reason for it??? why this is happening, working perfectly in my local server but nothing is happening in the site. i...

Where are Adobe DTDs kept?

I can't believe how difficult these are to find. You'd THINK they'd be on adobe.com... anyway. Where can I download the following Adobe namespace DTDs?: <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd" [ <!ENTITY ns_flows "http://ns.adobe.com/Flows/1.0/"&gt; <!ENTITY ns_extend ...

Insert text node to XML document containing XML

I'm building a XML document dynamically where I create a a text node with CreateTextNode(text) method. Now in case the text contains XML it will be XML encoded. For instance: text = "some <b>bolded</b> text" How do you insert the text without being XML encoded. EDIT: I'm building a XML document with XmlDocument and insert element...

How do you open an XML picture file?

I have a digital elgph camera and accidently pressed something that turned all my pictures into XML files, they all show up on my computer but i cannot open them. Is there any way i am able to open them? ...

Tutorial for creating a podcast (in PHP)

I am looking for some tutorials for setting up a podcast in PHP. I have audio files and title/description data, I just want to make sure I get the XML part right so that it handles well in iTunes and other common players. (I don't subscribe to any podcasts, and I don't know what's popular.) The title/description data is stored in a mysq...

What is the best way to pass around XML in a .NET application?

I have the following XML file with "page" nodes which I want to read into "PageItem" objects in my application. Most of the XML nodes I save as string/int/DataTime property which works fine. But what is the best way to store the XML child nodes of the "content" node in a property of a PageItem object so that I can parse it later within ...

Using powershell to turn a folder structure into an XML file

I've been downloading a bunch of music the lately(yes yes, perfectly legal) Anyway, the random idea to turn the folderstructure into and XML file occured to me. I don't know what I'd do with it, but I'd like to be able to do it. So I turned to Windows Powershell. Turning any data into and XML file is done via: $P = "command to get dat...

How to retrieve XML DOM in IE ?

I have an HTML form and iframe like this: <form id="frmUpload" target="ifrTarget" action='http://....asmx/SampleMethod'&gt; <input name="title" /><br /> ... <input type="submit"/> </form> <iframe id="ifrTarget" name="ifrTarget"></iframe> Action attribute points to my ASP.NET web service. When the form is submitted, the IFRAME ge...

What is the best way to manually parse an XElement into custom objects?

I have an XElement variable named content which consists of the following XML: <content> <title>Contact Data</title> <p>This is a paragraph this will be displayed in front of the first form.</p> <form idCode="contactData" query="limit 10; category=internal"/> <form idCode="contactDataDetail" query="limit 10; category=int...

How to remove header from XML document using org.w3c.dom classes?

Hi, I want to remove <?xml version="1.0"?> tag from the xml. I have used XMLWriter for string representation of class. It is generating the above tag by default. Now I want to remove it. Please help. Is there any standard way of doing it in org.w3c.dom for Blackberry? Thanks in advance. ...

Setting a global variable in Magento, the GUI way?

I've recently started using Magento for a client's webshop, and still need to get to grips with its systems. The webshop should have several links to and also grab info from another domain, where the corporate website is located. I would prefer not to hardcode the domain name or URL but instead define it at some place and use that value...

XSLT to flatten XML hierarchy to HTML table

I’ve got some hierarchical XML like this: <node text="a" value="1"> <node text="gga" value="5"> <node text="dh" value="9"> <node text="tyfg" value="4"> </node> </node> </node> <node text="dfhgf" value="7"> <node text="fdsg" value="2"> </node> </node> </node> The names of the elemen...

Why when I send XML to PHP are the nodes lowercase, but when I parse them in PHP they are uppercase?

This is a follow up question to this answer: http://stackoverflow.com/questions/948610/how-do-i-parse-xml-from-php-that-was-sent-to-the-server-as-text-xml JavaScript/jQuery: var xmlDoc = jQuery.createXMLDocument( "<items></items>" ); jQuery( "items", xmlDoc ).append( jQuery( "<item>My item!</item>" ) ); jQuery.ajax({ url: "test.ph...

How to force XML to treat special chars as a plain text?

Structure <!-- some text --> is a comment in XML, but I would like to put this text inside another tag and I don't want it to be treated as a comment, just as text (I need it in visual studio's class's comment), like this: <summary> (...) that contains sections marked with <!--[section_name]--> at the beginning. </summary> How d...

How do I tell LINQ to ignore attributes that don't exist?

The following code works but only as long as each element of the XML has an "Id" attribute. However, if an element does not have an id attribute, LINQ throws an NullReferenceException. How do I specify that if there is no Id attribute, just assign a null or blank? using System; using System.Linq; using System.Xml.Linq; namespace Tes...

Validate XML against XSD software

What graphical software do you recomend to validate a XML file against XSD definition file? ...

Edit (through data binding) XML in ASP.NET form

here's my scenario. XML is stored in SQL DB. I need to allow user to edit different parts of that XML (no insertion, just updates), get notified if something changed (so that I could save the last date file or node was edited) and then save updated XML to DB. What is the best & quickest approach in this scenario? I was hoping to use dat...

How can I get the type of element being processed by LINQ-to-XML?

With LINQ I get four elements out of some XML, each element can have a different name (Book, Magazine, Article). How do I get the name of the element I'm currently processing, e.g. something like ElementType() below: using System; using System.Linq; using System.Xml.Linq; namespace TestXmlElement2834 { class Program { ...

Which validating python XML api to use?

I new to xml stuff, so I have no idea which api I should use in python. Till now I used xmlproc, but I heard it is not developed any more. I have basically only one requirement: I want to validate against a dtd that I can choose in my program. I can't thrust the doctype thing. Performance does not really matter, so I would like to use ...

How do I get the sum of all content when parsing an XML tag in Ruby?

I have some XHTML (but really any XML will do) like this: <h1> Hello<span class='punctuation'>,</span> <span class='noun'>World<span class='punctuation'>!</span> </h1> How do I get the full content of the <h1/> as a String in Ruby? As in: assert_equal "Hello, World!", h1_node.some_method_that_aggregates_all_content Do any of t...