xml

how to convert XML encoding="tis-620" to utf-8

any idea how to convert this xml to utf-8 ? <?xml version="1.0" encoding="tis-620" ?> <rss version="2.0"><channel><title>Pantip.com : Tech Exchange - IT NEWS</title><description>ข่าว IT NEWS จาก PANTIP.COM : Tech Exchange ส่งตรงถึงคุณทันเหตุการณ์</description><link>http://www.pantip.com/tech/newscols/&lt;/link&gt;&lt;category&gt;News/...

HTML Table from XSLT where a node for each 'column' may not be present in each 'row'

I have this XML: <?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="xsl.xsl"?> <Response> <Result> <Date Unix="1263340800">13 Jan 2010 00:00:00</Date> <Column> <Name>Small</Name> <Value>100</Value> </Column> </Result> <Result> <Date Unix="1263427200">14 Jan 20...

How to search and replace a tag value in xml file using delphi?

How to search and replace a tag value in XML file using Delphi? I know what the XML tag is, but the value is random and simply needs to be reset to a default value, so in reality I cannot/should not search for the value but only the tag. I also know the location of the file/files. I'm new to Delphi, can someone provide me a simply exam...

php upload xml to google api

Hi, I need some help with this problem, please. For days I have been trying now. The retrieving off feeds and parsing them is not really a problem, but Uploading data in the form off xml is? The code below is partially from the google docs samplecode also, but obviously it's not working. I hope someone else is more into the google ap...

Sending several datatypes to remote server

Hello, I am programming a client and server in Java where the client sends a request to create a Certificate. This request contains a lot of different datatypes including byte [], the way that I am doing it now is by using ObjectStreams like : objectStream.writeObject( new String("value of field1")); objectStream.flush(); objectStream....

C# XML Object Serialization: setting xmlns root attribute

I am serializing an object to xml and would like to set an xmlns attribute to the root node. eg: ... <root xmlns="[specified url]"> ... </root> I cant seem to have an xmlns property/attribute on the member or seem to add the namespace when serializing without a prefix? Any ideas? ...

How to create twisted.words.xish.domish.Element entirely from raw XML

I was surprised that XML basic object (twisted.words.xish.domish.Element) could not be created entirely from XML string. The most alike way is: msg = "<iq to='[email protected]' id='id123' type='get'> \ <query xmlns='http://juick.com/query#messages' mid='123456'/> \ </iq>" iq = domish.Element(('','')) iq.addRawXml(msg) ...

Serialize all properties of class to XML

I have a load of classes and I need to generate an XML schema for these classes. The easiest way I can think to do this is to create the classes, serialize as XML and then run XSD on this XML. However, if I don't set the properties of a class, no XML node is created and therefore the XSD doesn't pick it up. Is there a way for me to te...

E4X get element's next sibling

Hey, I have a reference to a XML node which is part of a bigger XML tree. Is there a way to get that elements next/previous sibling without accessing the parent and looking for it? Something like DOM's nextSibling would be what I look for. edit: Given that there is no natural way to do this with E4X, I'll just stick to the following (e...

How can I match the xmlns:* attributes with XSLT ?

How can I match the xmlns:* attributes with XSLT 1.0 ? Using a RDF document I tried: <xs:template match="rdf:RDF"> (...) <xsl:for-each select="@*"> <xsl:value-of select="."/> </xsl:for-each> (...) </xsl:template> but it doesn't seem to work for the xmlns attributes. Thanks. ...

problem in sorting xml by date<xsl:sort select=""/>

I am trying to sort my xml by date but its not working my xml and xsl r like this <xsl:template match="/"> <xsl:for-each select="news/item"> <xsl:sort select="date1" order="descending" /> <xsl:value-of select="date1"/> ...

How to convert IEnumerable<table> to xml or dataset

Hello. This is the code: IEnumerable<table> results = db_dane.ExecuteQuery<table>(query); table - is a database table, query - sql query (example: select * from table), db_dane - linq datacontext. How to convert results of this query to xml or dataset? ...

how to remove the namespaces from the Element.

I am working with org.w3c.xml java library and encountering a few difficulties performing a few tasks: I have an Element object; how can I remove namespaces from it and the predecessors? How can I create a Document without the namespaces? I have tried DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance(); do...

Ruby server and Flash client

I want a Flash file to load external movies. Later, I want to add tags to the XML document to control the movies. I have a policy server file "to open a port for Flash client. I also have a file to load, but I don't have a Flash client built to receive the file. Ultimately, I can control Flash from a Ruby server and talk to it with an X...

XML parser: implementation design

I've always assumed XML documents are a convenient way to store information. Now I've found in XML a good way to "instruct" my application. Delicous. My problem is integrate the XML parsing in application classes. I'm using C# System.Xml interface, I think it's good and portable (right?). Is there any standard interface which defines m...

Document type declaration and namespaces

Hi I’m new to XML and am currently learning about Document Type Declaration. Anyways, when declaring elements in the body of DTD, the element name must appear exactly as it will within the XML document, including any namespace prefix, which means users can’t define their own namespace, but must use the prefix defined within DTD. a) I...

using Castor to parse xml based on attribute values

Using Castor to parse the following xml into POJOs using a mapping file is fairly straightforward: <human name="bob"/> <dog owner="alice"/> It uses the name of the element to map to the class. But what if an attribute should be used to do the mapping? e.g.: <animal type="human" name="bob"/> <animal type="dog" owner="alice"/> This...

What does the xml look like for a wrapped wcf post call?

I have a wcf restful service with a operation contract that contains two values - an int and a string. This is a post call as well. If i wrap the call using the BodyStyle = WebMessageBodyStyle.Wrapped. What should i assume the xml request will now look like? ...

Convert an XML node to a MovieClip

I have an xml document that I would like to use to show MovieClips in my .fla: <linkedMovieClip>TestClip</linkedMovieClip> In my .fla, I created a symbol called TestClip and select Linkage > Export for Actionscript and named it TestClip. My code in my Document class traces the xml: var t:*= getDefinitionByName(String(slideItem.linke...

How to read in and parse an XML file on the iphone?

I have a web server which returns an XML file. Lets say http://www.foo.bar/foo.php?wantXML=1 How would I fetch that file from the server and then parse it to access the data? I guess I would have to spawn a new thread and do the whole thing in the background to not block the UI? What classes must I look at? ...