xml

Sending Variable-Length Data Over TCP Socket

My application needs to send/receive xml data via a tcp socket. There is no way to include any kind of a fixed-length header containing message length. As far as I understand, data transmitted over tcp can come to the receipient like this. <messa ge><content >hi</content> </message> But somehow this never happens meaning that data s...

How i could access to the information inside the HTML

Hello i had a project what send information using the POST method to make a request in a server app write in Python, i want to know if after i make the request i can have full access to the elements in the page? ...

Write stored procedure parameters to an XML Column

I have a need to take the parameters passed in to a Stored Procedure (SQL 2005) and write those values into an XML column as one xml document. Looking for an idea on how to start it. ...

Parse single XML entry in classic ASP

Hi Everyone, I am trying to parse a single XML entry with no name in ASP classic and having issues getting it to resolve to an object? Here is what I am trying: result = xmlDoc.selectSingleNode("//Boolean") I have also tried: result = xmlDoc.selectSingleNode("//Boolean").Attributes.Text Neither of them return an object, this is m...

How do I work directly with the XML in WCF Message Contracts?

I'm working with WCF, implementing a very (VERY) complex set of interactions (that we've been handed by a committee controlled by people who have never heard of computers) over SOAP. I will be receiving a message that looks like this: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"&gt; <s:Header> ... (lots of "standar...

How to Specify Mappings from Proprietary DB to XML?

I am writing a software package whose job is to export DB data from my company's main product into arbitrary XML formats (for interfacing with other applications.) Parsing of arbitrary XML datafiles into our database may be next. I am writing in C/C++, and the product's database is stored as Pervasive BTRV files in a proprietary format...

Select specific xml node from xmlDocument then change xml node's attribute

I have a simple xml node inside an xml document in C# that I would like to query, then set the value for the visible attribute to false. Below is the xml. I need to be able to select the node by the node name(DGField) and the text_id(Test.ChangeRank). Does anyone know how to do this? Thanks in advance. <DGField text_id="Test.ChangeRank"...

InfoPath and external entities in XML

I have an XML file with external entities that I'm attempting to use as a secondary data source in InfoPath 2007. When I evaluate the XML (using XPath), instead of getting the substituted values from the external file I am getting the literal value in the raw XML. Here is the "core" XML file I am working with: <?xml version="1.0" ?> <...

Linq to XML, fastest way to find elements?

I have a very simple XML: <Rows> <Row> <id>1</id> <name>foo</name> <more>xyz</more> </Row> <Row> <id>2</id> <name>bar</name> <more>abc</more> </Row> </Rows> and need to do lots of querying on the ID, speed being really key. Would it be more efficient loading the XML into a datatable and creating a PK o...

Loading XML from string in javascript works fine in IE 8, fails in firefox

I have an XML file which was generated by serialising a C# object. I want to parse this XML using javascript. When i try to load a string as XML using javascript, it works fine in IE 8, but fails in Firefox. This is the code i am using if (window.DOMParser) { parser = new DOMParser(); xmlDoc = parser.parseFromString(stringValue, 'tex...

XML parser syntax error

So I'm working with a block of code which communicates with the Flickr API. I'm getting a 'syntax error' in xml.parsers.expat.ExpatError (below). Now I can't figure out how it'd be a syntax error in a Python module. I saw another similar question on SO regarding the Wikipedia API which seemed to return HTML intead of XML. Flickr API r...

Is it better to have information about an XML node as an attribute or a child node?

I prefer to have my XML documents structured in the following way: <root> <node info1="blah" info2="blah" /> <node info1="blah" info2="blah" /> </root> Instead of: <root> <node> <info1>blah</info1> <info2>blah</info2> <node> <node> <info1>blah</info1> <info2>blah</info2> <node> </root> I th...

Help with looping through an XML in C#

I have an xml that looks like this <words> <word>word1</word> <word>word2</word> <word>word3</word> <word>word4</word> </words> I would like to loop through the "word" tags and just output the innertext for now. how would I do this? here is what i am doing now but is says the list of nodes count is 1 stri...

Force XML character entities into XmlDocument

I have some XML that looks like this: <abc x="{"></abc> I want to force XmlDocument to use the XML character entities of the brackets, ie: <abc x="&#123;"></abc> MSDN says this: In order to assign an attribute value that contains entity references, the user must create an XmlAttribute node plus any XmlText and XmlEntit...

Oracle 11GR2 deprecated XPath 1.0 functions

According to this whitepaper: http://www.oracle.com/technetwork/database/features/xmldb/xmlqueryoptimize11gr2-168036.pdf Starting 11gR2, Oracle has deprecated many older proprietary mainly XPath 1.0 based operators in favor of standards based XQuery syntax, as listed in Table 1 below. OLD ORACLE PROPRIETARY SYNTAX --> NEW XQUERY SQL/X...

about SAXparseException: content is not allowed in prolog

i am using glassfish server and the following error keeps coming.... Caused by: org.xml.sax.SAXParseException: Content is not allowed in prolog. at com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java:304) at com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(Deployment...

Modify App.config permanently C#

Hi, Ok so im trying to use the appSettings element in the App.Config file to determine what kind of storage to use. Here is my app.config file: <?xml version="1.0" encoding="utf-8" ?> <configuration> <configSections> </configSections> <appSettings> <add key="storage" value="memory"/> </appSettings> </configuration> So I wa...

iphone: use Entity object created from Core Data?

I currently have a Video object created via Core Data defined as: Video .h #import <CoreData/CoreData.h> @interface Video : NSManagedObject { } @property (nonatomic, retain) NSString * title; @property (nonatomic, retain) NSString * urlImage; @property (nonatomic, retain) NSString * description; @property (nonatomic, retain) NSS...

Xquery to get all nodes that has a particular attribue

I have a XML file that has lot of elements with a particular attribute say href. Is there any x query to get all the nodes that has href = "ABC.jpg" ? If not what is the best way to do it ? ...

PHP problem with UTF-8

Hello, first sorry for my English. I will try to explain me. I am delevoping a web to edit a SoapUI(webservices) XML project. In this web, when someone change a response, the response is sent by Ajax by post. I take the response and the first action is an utf8_decode, then I do some str_replace. Everything perfect, I've got this (in va...