xml

database security with php page that spits out XML

Hello, I just created a PHP page that spits outs some data from my database in an XML format. This data is fetched from a flex application I made. I had spent a long time formatting my tables and database information and do not want anyone to be able to simply type www.mysite.com/page_that_spits_out_XML.php and steal my data. However...

How do I update a .NET DataSet via XMLDataDocument for application to a DataGrid control?

I have a pretty simple operation but am struggling with how to implement it. I am loading XML from an external data source using a DataSet.ReadXml(), then creating a new XMLDataDocument from that data set, then syncing the Dataset with updated data from the XMLDataDocument like so: doc = new XmlDataDocument(dsDataSet); dsDataSet.Enforc...

Extract XML name/value pairs from different nodes in Coldfusion

Hi All, I am working on some Plesk integration using the XML API and I am trying to figure out how to parse the XML response that I get back. Most of the data is fine, but the Limits and Permissions are setout differently. Essentially they are set out like so: <data> <limits> <limit> <name>foo</name> <value>bar</value...

What is <ns0: for?

I was looking at this question: http://stackoverflow.com/questions/117641/how-to-remove-duplicate-elements-from-an-xml-file It has <ns0: for ? I have never seen it before. ...

Difference between XML and XMI?

Can some one shed some light on the difference between XML and XMI? Can XMI be used in place of XML? ...

how to COPY Attribute value in a new attribute

How to copy data of attribute to new attribute in the same column in sql original data <root> <child attr='hello'></child> </root> Result 1 <root> <child attr='hello' attr2='hello'></child> </root> Result 2(with a modification) <root> <child attr='hello' attr2='**H**ello **W**orld'></child> </root> I want to do this only throu...

AS3 XML problem

My Flash project is made of several .swf files, one of them loads XML gallery. everything works fine on my machine, but when I upload it to the testing server gallery content doesn't load. All my paths are relative to Main swf file. I can't makeabsolute URLs, b/c I have to deliver "working" zip package. What could be wrong? edit: Wh...

How to return plain XML from ADO.NET data service

Hi, I was wondering how to return plain XML from ADO.net data services I have exposed an ADO.net data service to different DEPARTMENTS in our company who are not so technical. The data returned is ATOM FEED which is kind a hard to read / interpret with its format, too much information is returned people from various departments would ...

Objective C Object Functioning & Passing Arrays

I apologise if this has been asked before but I can't find the info I need. Basically I want a UITableView to be populated using info from a server, similar to the SeismicXML example. I have the parser as a separate object, is it correct to alloc, init an instance of that parser & then tell RootViewController to make it's table data sou...

Find position of a node within a nodeset using xpath

After playing around with position() in vain I was googling around for a solution and arrived at this older stackoverflow question which almost describes my problem. The difference is that the nodeset I want the position within is dynamic, rather than a contiguous section of the document. To illustrate I'll modify the example from the ...

Populating <validuser/> field in WorkItem

Hi I've created a new WorkItem named Project that contains a field named business owner which can be any domain user. The field was created using the WorkItem XML syntax using the tag. I have a problem that only TFS valid users (as the name suggests :)) show up the the combobox in the Visual Studio form. Is there any way for me to le...

Question regarding XML validation using XSD

I am looking to create an XSD document that would validate some XML for me. Let's say, for example, that the XML documents are designed to describe books: <?xml version="1.0" encoding="UTF-8"?> <book> <comment>Bob's very first book</comment> <name>Bob's book</name> <author>Bob</author> <year>2009</year> <publisher> ...

How can I 'validate' that an XML file is correctly using the .xsd file I set for it?

I'm new to XML validation using .xsd files. Maybe I'm not even asking the correct question here; but is there a way for the computer to tell me that 'Yeah, your XML file is correctly formatted according this .xsd file you made'. I imagine I need a validator of some sort. Do those exist and it that what I need? ...

traversing ECMAScript for XML (E4X) - tutorial or example please?

Hi there I am using AS3 to traverse through XML but the Flash help is really insufficient here. Do you know any easy-to-read tutorial on how to traverse E4X in for loops or similar? (I don't think the question is Flash or AS3 specific as long as the tutorial is easy to understand) Thanks! ...

How to modify the attributes by putting dynamic node paths

I have a code that selects all elements and their child nodes DECLARE @x XML DECLARE @node_no int DECLARE @count int DECLARE @max INT, @i INT EXECUTE return_xml '1', NULL, @x output Declare @temp Table ( id int not null identity(1,1), ParentNodeName varchar(max), NodeName varchar(max), NodeText varchar(max) ) INSERT INTO @temp SE...

How can I get JDOM/XPath to ignore namespaces?

I need to process an XML DOM, preferably with JDOM, where I can do XPath search on nodes. I know the node names or paths, but I want to ignore namespaces completely because sometimes the document comes with namespaces, sometimes without, and I can't rely on specific values. Is that possible? How? ...

Problems in selecting a node in XML with Namespace using XPATH

I have the following XPATH line: //det[@nItem="1"]/prod/cProd That successfully selects the desired node using XPath Visualizer, where it identifies automatically the namespace, and you define in which namespace you want to select. When I specify the namespace in C# with the following XPATH code: "http://www.portalfiscal.inf.br/n...

Parse XML file using JSP/JavaBean, deployed in WAR

I have a JavaBean that reads and processes an XML file. The XML file lives in the WEB-INF/ folder in my application. A JSP file uses the JavaBean to pass it the XML file name using the setProperty method, and uses the context path to do so. This works fine in my local development environment, but when deployed as a WAR on our test envir...

XmlDocument type not found even though I've referenced System.XML ?

I've referenced System.Xml: using System.Xml; Then in this line: XmlDocument xdoc = new XmlDocument(); I get: The type or namespace name 'XmlDocument' could not be found What could there possibly be wrong ? Info: .NET 3.5, C#, triple checked that it's referenced and used in the same document, been able to use similar and ...

What is the question mark in the XML attribute for?

I'm looking at WCF documentation in the MSDN (http://msdn.microsoft.com/en-us/library/bb332338.aspx), and have come across this wee piece of config: <endpoint name="basicHttpBinding" address="" binding="basicHttpBinding" contract="QuickReturns.StockTrading.ExchangeService.? Contracts.ITradeService"/> Can anyone tel...