xml

Which format for transmitting data over TCP?

Hi, I'd like some advice on which format to use for transmitting data over TCP. Currently, I have devised a simple text-protocol with delimited strings. I'm thinking I should use something out there that already exists such as XML, JSON, or XMPP? What data formats do people use for transmitting over TCP? I would like to optimize for...

XQuery Insert without namespace SQL2008

<game xmlns="http://my.name.space" ></game> This is my root element. I've written a stored procedure to insert elements into it. To sum up the stored procedure, here's the SQL UPDATE ChessGame SET GameHistory.modify('insert <move><player>black</player><piece>pawn</piece><start>E7</start><end>E6</end></move> as last into (/game)[0]') W...

VB.NET XML Literals Parsing

If I have a text stored in db, file, resource does not matter: <code><%= Integer.MaxValue %></code> Is there a way to do this: Dim el As XElement = XElement.Parse({variable containing text above}) and to have it evaluate the expression Integer.MaxValue? ...

Implementing a XML translator using XML's EBNF

I'm contemplating the idea of implementing a XML translator using a compiler generator, based on the W3C's XML 1.1 spec, which includes a complete EBNF grammar. More precisely, I plan to use Qi-YACC because I want to learn this tool. It will be my first foray into using any compiler-compiler. The first kind of translation I'm planning ...

How are VB.net XML Embedded Expressions implemented?

Can someone explain the nuts and bolts of what's really going on under the covers? ...

JAXB: XML unmarshalling nested objects behaves unexpectedly

Hi, I have a few classes (Class1, Class2, Class3) that I annotated with JAXB annotations (XmlRootElement, XmlElement etc.) to generate XML like this <class1> <field1>ABC</field1> <class2> <c2Field1>XYZ</c2Field1> <class3> <c3Field1>1</c3Field1> </class3> <class3> <c3Field1>2</c3Field1> ...

Adobe Air and PHP

i do not fully understand how to communicate between adobe air (using flex3) and php. i do understand that many use AMFPHP and Zend AMF. However, AMFPHP seems to be outdated and Zend AMF (from what i understand) only works with the Zend framework (something I dont use, nor like IMHO). My Question Is: Are there other ways of communicat...

Displaying an XML file with XSL within an existing webpage

Hi, I'm trying to get an html page to display an XML file formatted with an XSL stylesheet. Whatever examples I see are either displaying it in a new page, with the XSL stylesheet taking care of the tags, but no examples where I can clearly see it being displayed as part of an existing webpage... I'm using a PHP script to generate the ...

PHP Warning in XSLTProcessor::importStylesheet() despite near empty XSL stylesheet

Hi, I'm trying to use the following code # LOAD XML FILE $XML = new DOMDocument(); $XML->loadXML( $exporteddatatransformed ); # START XSLT $xslt = new XSLTProcessor(); $XSL = new DOMDocument(); $XSL->load( 'xsl/'.$xsltemplatefileid.'.xsl', LIBXML_NOCDATA); $xslt->importStylesheet( $XSL ); <-- LINE 549 #PRINT print $xslt->tr...

Is there a class built-in to .NET for querying XML DTD information?

Does .NET provide any built-in support for working with XML DTDs? I want to retrieve element type, attribute lists, and entity declaration information. I'm aware of the support for validating against a DTD, but want to be able to work with the DTD information itself. I'd be fine parsing DTDs manually to accomplish this, but would rather...

Understanding XML-RPC param possibilities, especially recursion of values

One thing I've noticed with all the XML-RPC examples out there, including the spec itself, is there is no detailed example of a schema using recursive (param) values. It is hard to understand what should actually be possible within XML-RPC without these illustrations, and I wonder if someone could help me get a better handle on it. The ...

xml in actionscript 3

Im using the following code to make a simple countdown time for a website: //Create your Date() object var endDate:Date = new Date(2009,8,5); //Create your Timer object //The time being set with milliseconds(1000 milliseconds = 1 second) var countdownTimer:Timer = new Timer(1000); //Adding an event listener to the timer object countdow...

Is this a valid XML?

I have a feeling this XML is not valid, can someone please explain why? I think it has something todo this the dot i the element name? estate_price.price_suggestion Any thing else not valid about this XML? XML \\ <?xml version="1.0" encoding="UTF-8"?> <iad> <DataTag> <element id="0"> <changed_string>content</changed_st...

How do I ignore an [XMLIgnore] Attribute

I'm trying to serialize some objects obtained from a 3rd Party .NET Lib to an XML File. When I Go To Definition for the object, some of the Properties of that object are marked as [XMLIgnore] Is there any way to tell my System.Xml.Serialization.XmlSerializer to ignore the fact that some properties have that attribute and that it shoul...

C# WPF fill datagrid or listview from XML file

I have a well formed XML file I would like to fill a datagrid with. I would prefer using the AutoGenerate feature of WFPToolKit datagrid, but could hard code the columns in. The trouble I am having is getting the xml file contents into a datagrid. I had it partially working in a listview, but think a datagrid would be more suited for m...

How to handle escaped characters in XPath expressions for Nokogiri

I'm using nokogiri with an xml document that looks something like this: <songs> <song> <artist>Juana Molina</artist> <album>Un Dia</album> <track>8</track> <title>Dar (Qu&#233; Dif&#237;cil)</title> <rating>5</rating> <filename>\Juana Molina\Un Dia\08 - Juana Molina - Dar (Qu&#233; Dif&#237;cil).mp3</filename> ...

How to display XML returned by SharePoint for web parts?

Lately I've been doing a lot of custom styling in SharePoint by modifying the XSL used to display various web parts. Knowing what the actual XML looks like, including which elements have actual values, really helps when working in the XSL. I've discovered a way to show this XML when using Ontolica web parts, but not when I'm using the ...

Java: How to Indent XML Generated by Transformer

I'm using Java's built in XML transformer to take a DOM document and print out the resulting XML. The problem is that it isn't indenting the text at all despite having set the parameter "indent" explicitly. sample code public class TestXML { public static void main(String args[]) throws Exception { ByteArrayOutputStream s; Docum...

parsing a XML file in java

I have wrote a SAX parser. It works fine when the attibute values are nested in double quotes. But if i dont use quote it throws a exception. I want my parser to parse the XML file whose attributes values are not inside quotes. I want to parse following type of file: <root> <tag1 attribute1=value1 > my data </tag1> </root> Note t...

Is there anyway to detect whether a specific Opensearch search engine has been added to the browser?

Hi all. I am currently working on an application that requires to check whether the Opensearch has been added. I've successfully done the code that adds the search engine of my application to the browser via Opensearch XML file. but I wish to detect whether the search engine is currently installed or not. ...