xml

Why do I get connection aborted messages?

I have a web form that is sending data to a third party service using this library from http://www.xml-rpc.net. Recently the form has started to throw exceptions. I have tried enabling trace in the web.config to see what data is going back and forth, but this seems to fix the problem, or at least stop the exception being thrown. Any id...

Decoding extended characters in XML

I know this is probably simple and has probably been asked before, but I'm having trouble coming up with a solution. I am parsing some RSS feeds which include HTML as CDATA blocks. One example is here: http://g.msn.com/1ewenus50/news2 The feed changes a lot, but there are almost always some extended characters in it. For example if I m...

xmlElement parser need in c#

I need to simple xml parser like below. xmlNode root=xmlDoc.DocumentElement; root.appendChild(xmlElement.Parse("<book name='ff'>sample </book>"); is there any parser library or extension method like this .Parse("<book name='ff'>sample </book>") ...

XPath: Parent form of submit button

I want to use PHP and DomXPath::query to get the parent "form" element of a submit button. The variable $dom holds the complete DOM tree and $node represents the submit button as a DOM node. $query = '??????'; $xpath = new \DomXPath( $dom ); $parents = $xpath->query( $query, $node ); if ( $parents->length ) { $form = $parents->it...

CuRL not grabbing contents of this XML url?

<? $request_url = 'http://www.betjamaica.com/livelines2008/lines.asmx/Load_Latest_Lines?SportType=Football&amp;SportSubType=NFL&amp;GameType=GAME'; $ch = curl_init(); $timeout = 5; curl_setopt($ch, CURLOPT_URL, $request_url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout); $data = curl_exe...

duplicate selection in text() XPath selector

I'm trying to select all nodes with text that contain a certain word (ex: Company) because the word needs to have a register mark. Here is part of the XHTML (this <p> is inside a table cell). <p> <strong> <a style="color:#0E5A8B; text-decoration:none" target="_blank" href="http://www.trekk.com"&gt; <span class="title"> ...

Displaying newline character in PDF generated with FOP

Hi, I'm generating a PDF document using FOP. The source XML contains some text data which contains newlines. But when its being shown in PDF, all new lines are converted into spaces. I tried replacing all \n characters with &#xA; in the java code but that is not helping too. How can I display the new lines in PDF document? Can you...

Can I start up javascript from XML in the browser without HTML?

I've been tinkering with XML on the web and can use javascript if I add HTML's script element but was interested in knowing if javascript can be started up for scripting the DOM without using anything from HTML at all? ...

How to do the Validation of only particular/specific tags in an XML?

I have some code-generated XML. I have written an XSD to validate the XML. I have tags in them XML that do not need to be validated. Is there any way to validate particular tags and skip the others? The example XML is: <person> <firstname>Name</firstname> <lastname>Name</lastname> <tag1>data</tag1> <tag2>data</tag2> <tag3>data</tag3> <...

using variable value in href XSL

Hi, I knw its pretty basic question but I have just started reading it... I have a variable name <variable name="NAME"> http://www.yahoo.com/&lt;xsl:value-of select="$someothervariable"/> </variable> and i want to use it in like this I have used these two approaches but it didn't work <a href="{NAME}">HELLO</a> <a href="<xsl:valu...

Duplicate column names are not allowed in result sets obtained through OPENQUERY and OPENROWSET

How can I get the second column with the same column name using OPENXML in MSSQL 2005? Here is the result set that I plan to get. columnData1 columnData2 A B C D E F DECLARE @hDoc int, @xmldata varchar(max) SELECT @xmldata = '<?xml version="1.0" encoding="utf-8" ?> <reportResponse> <reportDataRow rowNum="1"> <columnData colNum...

Extracting name of RSS feed in Cocoa-Touch

Hi All, I am trying to parse an RSS XML feed. I have figured out how to parse what's in the tags for the individual stories, but I cannot figure out how to get the name of the entire feed (for example "CNN's News Feed"). I think it's in and I've tried a ton of things but I can't figure it out. Below is part of my parsing code that I...

.NET XmlSerializer and multiple references to the same object

My repository has List<Student>, List<Course> and List<Enrolment> where an Enrolment has Enrolment.Student and Enrolment.Course which are references one of the students or courses in the two previous lists. When I use XmlSerializer on my repository it outputs redundant data as it serializes all properties of each student in List<Stude...

Generating XSL FO

Hi, Are there any XSLT parsers (like MSXML 4.0) helping to retrieve the XSL FO document during the XSL-Transformaion Process ? In other words, how do I get a XSL FO file from a XML and XSL file ? Thanks, Aiwee ...

Is there a way to define multiline XML in code in C# without having to change " to ""?

I would like to be able to paste chunks of XML into my C# code. However, the best I can do is the following, but then I have to search and replace " with "". Is there a way to define multiline XML in C# code without having to alter the XML text like this? public static string GetXml1() { return @" <Customer...

Defining Game Object Behaviors in XML

I'm sure that there is a design pattern solution to my problem, but I can't seem to decide what a workable approach is. I know what I want, I'm just having trouble making the connections... I'll explain: I'm working on a game. I have GameObjects. I have GameBehaviors. The properties of my GameObjects are defined in an XML file which has...

export from Oracle into SQL Server or mySQL

Hi, Is there a standard or recommended method of exporting the data from an Oracle DB into a SQL Server or mySQL database? Was thinking exporting the Oracle data into XML then importing the XML into SQL Server...or this recommmened? Thanks, ...

XSD Validation of XML file having non-deterministic occurance of elements.

The following XML snippet is parsable using standard XML lib (tried with Java and Scala). <?xml version="1.0" encoding="UTF-8"?> <list> <a>value1</a> <b>value2</b> <a>value3</a> <a>value4</a> <a>value5</a> <b>value6</b> <b>value7</b> </list> As you can see 'a' and 'b' elements are mixed (non deterministic). Is it possible to write a X...

xml <! > element

hi guys, is there any connection between notation of CDATA sections and internal DTD definition? i mean both of these things are closed in that <! > element... so i wondered if there is any special meaning for this kind of element or is it just made exception considered as standard for defining CDATA and DTD ? if you can't understand w...

Is there a way to speed up this code that finds data changes in two XML files?

The following code compares two XML texts and returns a collection of data changes between them. This code works fine but needs to be as resource-friendly as possible. Is there a faster way to do this in LINQ, e.g. without creating the two collections of XElements and comparing each of their fields for differences? using System; using...