xml

What are the effects of an "XML Roundtrip" on Word 2003 documents?

Saving a Word 2003 document to XML and then back results in a reduced file size, and probably more that I don't know about. A diff on the WordML of the new document against the old shows differences only in the revision save ID's. So, what is getting lost in the roundtrip? If nothing is actually getting lost, then how would one explain ...

Parsing XML file using NSXMLParser

Hello I have to parse an XML file using NSXMLParser. There are so many HTML tags in them, so when I am trying to parse it, it will store the string up to that and then again go to found character method and starts to append it. my code is: if (Bio_CResults) { [BioResults appendString: string]; [Info appendString:string]; [stringar...

Advanced SAX Parser in C#.

See Below is the XML Arch. I want to display it in row / column wize. What I need is I need to convert this xml file to Hashtable like, {"form" : {"attrs" : { "string" : " Partners" } {"child1": { "group" : { "attrs" : { "col" : "6", "colspan":"1" } } { "child1": { "field" : { "attrs" : { "nam...

iPhone 3.0 plist file ?

Hello, In the iPhone Mobilephone app. there are some files like, "Moblie Phone" "Managed Package Artwork" "Package Info" that are not plist files, and cannot be converted with xml. Is there some other method of converting these files so as to make them readable and modifiable? Thank you Trying to modify the Mobile Phone app proper...

What is a polyglot document?

In this answer to this question, Lachlan-Hunt writes the following: With HTML5, you can choose to use HTML-only syntax, meaning that it is only compatible with being served and processed as text/html it is not well-formed XML. Or use XHTML-only syntax, meaning that is is well-formed XML, but uses XML features that are not compatible ...

WCF endpoint: Message.WriteMessage changes the closing tags inside the XML message

I am using a custom endpoint behavior extension to intercept messages as they are received by my WCF service endpoint, using IDispatchMessageInspector. I retrieve the message content like this: public object AfterReceiveRequest(ref Message request, IClientChannel channel, InstanceContext instanceContext) { MessageBuffer messageBuff...

google sitemap direct input validator

does anyone know of a google sitemap validator that does not require a public URL? I am working locally and am hoping for a direct input / copy+paste solution for validating my output. ...

WeatherRoom service down need a alternative for a website

OKay I don't use actionscript and trying to help my friend edit a flash website which the layout changes based on a xml feed from weatherroom.com which is now defunk, the dev of this site has also left my friend (his client). This is the current code bellow, is there anyway I can simply swap for another service and not have to hire a pe...

Change Response type in asp

Hello, I've used xml type by writing (asp coding) Response.ContentType = "text/xml" Now xml contents are over and I'd like to add html content so I wrote Response.ContentType = "text/html" But it still writing in xml what would be the problem here? ...

How to read/display XML using PHP

Is there a way to read off from an [external] xml (an xml file from a different website) using PHP? I know there's a way to read XML using JavaScript, but only if they are both in the same root. Could you provide an example on how to source the xml file, then read the following: <parent> <child> <grandchild>Example Text 1</...

XSLT: How to reuse a template within another template

If I have a template as follows, which is used to create a button: <xsl:template match="button" name="button"> <a class="button" href="{@href}"> <xsl:value-of select="@name"/> </a> </xsl:template> I want to be able to use that button in another template, like this: <xsl:template match="createForm"> ... <button name="Creat...

Best compression algorithm for XML?

Hello, I barely know a thing about compression, so bear with me (this is probably a stupid and painfully obvious question). So lets say I have an XML file with a few tags. <verylongtagnumberone> <verylongtagnumbertwo> text </verylongtagnumbertwo> </verylongtagnumberone> Now lets say I have a bunch of these very long tags with...

indent XML text with Transformer

I'm writing an XML file with the following code: Source source = new DOMSource(rootElement); Result result = new StreamResult(xmlFile); Transformer transformer = TransformerFactory.newInstance().newTransformer(); transformer.setOutputProperty(OutputKeys.INDENT, "yes"); transformer.transform(source, result); and this is the output file...

How do I include an html tag in a C# summary so that it is processed as text (not parsed as XML)?

I'm writing an HTML parser in C# and want to include examples of the HTML that it handles in the summary XML blocks. How do I prevent the < and > characters from messing up the auto-documentation of Visual Studio 2008? example: /// <summary> /// Creates a FlowSegment based on an HTML code, i.e. <bold> /// </summary> /// <para...

Parsing XML namespaces?

Using JavaScript/Ajax? I'm trying to extract values from: <yweather:astronomy sunrise="6:34 am" sunset="8:38 pm"/> Looking for something like: var response = transport.responseXML.getElementsByTagName("channel"); sunrise = response[0].getElementsByTagName("yweather:astronomy").item(0).Attributes["sunrise"].Value; But nothing wor...

Why does XSD.EXE Create Two .XSD Files, and How to Use Them?

Hello everyone, I am using the following command to generate related xsd file from my input XML file -- response.xml, my confusion is (1) why there are two xsd file output (response.xsd and response_app1.xsd), I think there should be only one of them generated? (2) If I need to generate C# class file by using xsd /classes, which xsd fil...

Delphi - XML - childnodes - getting attributes

I am trying to get the correct data from a twitter atom/xml feed. I have the twitter data in a txmldocument and am trying to get some specific information from it. Here is a truncated example of the data: <entry> <link type="text/html" rel="alternate" href="http://twitter.com/blub/statuses/1501068" /> <title>title of twitter post ...

Problem parsing a XML response from a Last.fm REST service in Silverlight 3 using LINQ to XML

I've got some problems parsing the response of a Last.fm API call from a Silverlight 3 application. I pass the response string of the REST service call, which was made via the WebClient class, to the XDocument.Parse() method to get a XDocument. Parsing the xml string seems to be successful but when I look at the resulting XDocument it ...

XML string manipulation in JS?

Hello, I have an XML file in a string in this format: <item> <name>xxx</name> <id>yyy</id> <view> <name>view1_name</name> <view_attrs> <view_attr> <name>Age</name> <values> <value>18-36</value> <value>55-70</value> </values> </view_attr> <view_attr> <name>Status</name> <values> <val...

How to store articles or other large texts in a database

Hello I am currently in the process of designing myself a database driven website. The main reason is for learning purposes but I wont lie, there is a small amount of vanity included! While I believe that my database design is pretty good so far, I am still not entirely sure on the best way of storing articles or other large texts. I...