xml

Editing Word Document

Is it possible to edit and insert entries in a word document that is hosted on SharePoint? I need to fill in a reviewer's table based on who made the last change to the document. I know I would use an event receiver to do this, but how do I interact with the word document interactively? ...

Why do I have to use LD_PRELOAD for libcl.2 to use XML::LibXML::Common on HP/UX?

A compulsion of LD_PRELOAD on HP platform only and not on other unix flavors (AIX,Linux, and Solaris). I built Perl Module XML::LibXML::Common on all of Unix flavors.I had to specifically do LD_PRELOAD for libcl.2 library on HP Platform only. While on other unix platforms nothing as such was required. Is this an OS behaviour or somethi...

Best Way to Test Rails REST XML API?

I want to test the REST api on my Rails site. What is the easiest/best way to do this with the rails testing framework? I'm only doing the standard resourceful stuff, so I am wondering in particular, since this is so bog standard, if there is any automagical way to test this stuff. ...

Parse an xml document located on the internet and convert to json

I found http://www.ibm.com/developerworks/xml/library/x-xml2jsonphp/ , but I don't know how to use this code to get the xml from my web server. any ideas? ...

SQL Server 2005 Insert parent/child xml data

Given an xml document that looks like this here: <parentRecords> <parentRecord field1="foo" field2="bar"> <childRecord field1="test" field2="text" /> <childRecord field1="test2" field2="text2" /> </parentRecord> <parentRecord field1="foo2" field2="bar2"> <childRecord field1="test3" field2="text3" /> ...

Android XML whitepaper

I am looking for resources concerning Android's use of XML - not how to's, but technical articles or whitepapers concerning the XML architecture in Android. Why were things designed the way they were, what considerations were made - all specific to the XML part. If this is not available, I'm also interested in general use of XML in mobi...

Using arrays with loadClip in AS?

I've preloaded images from xml into an array named arr. But I'm having problems with loadClip and getting the string from the array. So it doesn't load the image in the box. Example: arr[0] = "images/photo1.jpg"; var mcLoader:MovieClipLoader = new MovieClipLoader(); mcLoader.addListener(this); mcLoader.loadClip(arr[0], box_mc.loader_mc...

Best system for multiple language support in PHP?

I have an PHP application that I want localized. Currently, the way I'm doing this is a very ugly way: $loc['hello'] = "Hello", echo $loc['hello']; will show Hello, and you can change the file to change the language. What I want is a better way and a faster of doing this, what I'm considering: 1 XML file with language data for all page...

XML schema check error

Hello everyone, I am using the following schema to check the following XML file. And I find when there is more than one Information elements inside People elements, the schema check will fail. Why and how to fix it (I want to allow People element to be able to nest more than one Information items)? XML Schema file: <xs:element name=...

Find all tables with a field containing xml string values

I have an SQL 2005 database and I know that in the database there is a table which has got some xml strings in it. How can I find this table(s)? ...

XML default namespace issue

Hello everyone, Suppose I have the following XML schema file and the following XML document file. I have two questions, Since there is no target name space specified in XML Schema file, what namespace will Information element in? In the XML document file, when using Information, which namespace does it belong to? Please notice in this...

Using embed tag in xml

Hi, I am very very new to xml. I am developing an application which uses xml file. I created this file with the help of Google. My sample xml file is: <?xml version="1.0"?> <gamelist> <game> <title>Driver</title> <code><EMBED src="http://www.pnflashgames.com/modules/pnFlashGames/games/racer.swf"&gt;&lt;/EMBED&gt;&lt;/code&gt; <ra...

Unique Particle Violations

I've been looking at this issue for too long. I suspect I'm missing something obvious because I'm overfamiliar with it. I have a schema that suffers from a unique particle violation error. I can see why but I've spent too long fiddling with it to be able to step back and solve the problem. How do I phrase this schema so that it can va...

How to remove text from XmlNode?

Let's say, I've got a XmlNode: <A>1</A> How to remove a text from it, so I get: <A /> instead of: <A></A> Below is a unit test which shows what I tried so far. [Test] public void RemoveXmlTextTest() { string xmlString = @"<B><A>1</A></B>"; XmlDocument doc = new XmlDocument(); doc.LoadXml(xmlString)...

How do I import XML external entities that contain elements with custom namespaces?

Trying to help out a friend here... There is some output generated by an external tool that outputs xml nodes into a file. He needs to make this xml well-formed and apply a xsl stylesheet on it. So we have b.xml (generated by the tool) and Encomp.xml that imports the contents of b.xml as an XML external entity like this (Create 3 xml fi...

Most efficient algorithm to generate a site map?

..given an URL as input (C programming language). (Sitemap specifications from sitemap.org). ...

Scala XML serialization

Seeing the power of Scala, I wonder if an arbitrary object graph could be serialized and deserialized to/from XML using built-in Scala language features and libraries (e.g. without XMLEncoder, XStream or JAXB). Unfortunately, I haven't found such a solution. What could you advise? ...

LINQ to XML Newbie Question

is there a better way to do this kind of thing: var filter = new CashFilters(); var element = XElement.Parse(request.OuterXml); var productId = element.Elements("ProductId").Select(el => el); if (productId.Count() == 1) filter.ProductId = Convert.ToInt32(productId.Single().Value); ...

Mix XML Parents and Children in MSSQL

I think what I need is CROSS APPLY, but I can't seem to figure out the syntax. I have a set of XML in an MSSQL 2008 database that looks like this: <Cookie> <id>Chocolate Chip</id> <ChocolateChipPeanutButter> ... </ChocolateChipPeanutButter> <ChocolateChipPecan> ... </ChocolateChipPecan> </Cookie> <Cookie> ...

XML Code Comments in .NET

How much do you use the XML comments in your code files, and how do you use them? I've seen that you can use them to generate XML documentation, but can this XML documentation be used to generate an HTML help file or schema file for your code? Also, have you used any auto-generating comment tools (i.e. GhostDoc), and what are your impre...