xml

XML ElementMenu Surface

I am filling my ElementMenu with XML and all goes fine, i only got one question. How can i put a event on the last item? It doesnt seem to react on any of it. I got this so far: <s:ElementMenu.RenderTransform> <TranslateTransform X="0" Y="-27.5"/> </s:ElementMenu.RenderTransform> <s:ElementMenu.Ite...

How do I change the indenting for Excel's XML Data Export?

I am using Excel 2003's XML Data Source and exporting the data using the menu option Data -> XML -> Export. The data exports fine, but the resulting elements are indenting using tabs. This may sound trivial, but is there a way I can set the formatting of the indents to spaces? ...

XSLT: Breaking CSV from one source XML node into multiple target XML nodes.

Hi, Thanks to help of fellow SO users that helped me out in this question I am half way through my XML transformation. The problem that I hit a wall with transforming comma seperated values (DATE and QTY): <?xml version="1.0" encoding="utf-8"?> <results> <recordset rowCount="68" fieldNames="ITEM,ECL,LEAD_TIME,QTY,DATE" type="**coldfus...

StackOverflowError on Solaris but not on Linux/Windows

I have a Java application that parses a large xml schema (.xsd) using Xerces that runs fine on Linux and Windows but gives a StackOverflowError on Solaris, with exactly the same inputs and configuration. I know that Xerces uses recursion to validate xml schemas but since it didn't give any problems on Windows and Linux I was pretty confi...

How can I modify a given xpath string to only have nodes that exist in a specific xml document

I build a xpath string based on all filled-out fields in a form submitted by a user. In my xml document, not all form fields necessarily exist as nodes. When I try to do doc.SelectNodes(xpath); I get an exception System.Xml.XPath.XPathException that my xpath has an invalid token. How can I modify the xpath string to only include tho...

How to display xml response already formatted in html (IE won't show anything after the xml table)

How to display xml response already formatted in html (IE won't show anything after the xml table) If you visit this page in IE you'll see that nothing displays after the chart: http://www.ratecatcher.com/prototype.htm Here is the main php code: $xml = file_get_contents($request); echo html_entity_decode($xml); Then the html that is...

MSXML2.SAXXMLReader.6.0 doesn't parse &#x5;

Hi. I'm writing out some xml from C# using the .net framework's XmlTextWriter. This works ok. Some of the strings I write out contain the character value 5 (note I don't mean the character '5', but I mean the ascii value 5). Now, I understand from the xml specification that this character is illegal in xml. However, I don't care if it'...

Project Settings - xml false error

I have having a problem with either the VS.NET 2005 IDE or one of the Addons I use. I use VisualSVN, and CodeSmart, and I have the free tools from DevExpress (Refactor!) installed as well. I'm using VS 2005 Pro w/SP2. My problem is with the Settings tab of the Properties page and occurs for every VB project I work on. The other guy that...

SWF doesn't change its text changed dynamically via jQuery and C# 3.0

Hi! I have a Web page in ASP.NET MVC (C#) and jQuery where I have a swf file that reads its content from a xml file. And to render this swf, I've already tried jQuery Flash plugin, jQuer Media and swfobject. And in this same page, there is an input text where I write a text and this text will be loaded to the swf via ajax. The text wil...

XML to XML using XSLT

I am trying to create a new XML file from an exisiting one using XSL. When writing the new file, I want to mask data appearing in the accountname field. This is how my XML looks like: <?xml version="1.0" encoding="UTF-8"?> <Sumit> <AccountName>Sumit</AccountName> <CCT_datasetT id="Table"> <row> <CCTTitle2>Titl...

C# Better way to detect XML?

Currently, i have the following c# code to extract a value out of text. If its xml, i want the value within it - otherwise, if its not xml, it can just return the text itself. String data = "..." try { return XElement.Parse(data).Value; } catch (System.Xml.XmlException) { return data; } I know exceptions are expensive in C#, ...

XSD key/keyref: hierarchical key structure

I'm trying to define some foreign key constraints on an XML schema using xs:key and xs:keyref definitions. I want the structure of the document to be hierarchical in the following way: <?xml version="1.0" encoding="UTF-8"?> <tns:root xmlns:tns="http://www.example.org/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLoca...

Dynamically specifying tags while using replaceWith in Beautiful Soup

Previously I asked this question and got back this BeautifulSoup example code, which after some consultation locally, I decided to go with. >>> from BeautifulSoup import BeautifulStoneSoup >>> html = """ ... <config> ... <links> ... <link name="Link1" id="1"> ... <encapsulation> ... <mode>ipsec</mode> ... </encapsulation> ... </link...

Get out of memory with dataSet.GetXml()

I've got error "System.OutOfMemoryException" if dataSet is too large and the memory is enough. The size of file "file1.xml" is about 36 MB. What is the way to solve this problem? Thanks in advance. private XPathDocument GetXML(DataSet ds) { ds.WriteXml("file1.xml"); ds.WriteXmlSchema("file1.xsd"); XPathDocu...

Can I change BeautifulSoup's behavior regarding converting XML tags to lowercase?

I'm working on code to parse a configuration file written in XML, where the XML tags are mixed case and the case is significant. Beautiful Soup appears to convert XML tags to lowercase by default, and I would like to change this behavior. I'm not the first to ask a question on this subject [see here]. However, I did not understand the...

ASP Classic - XML Dom

I've got the unpleasurable task of working on a Classic ASP site (VBSCRIPT) and need to parse out the following information in a loop. <xml> <product ref="xxx"> <xxx/> <xxx/> <xxx/> <images> <image ref="JCCCCCC" /> <image ref="JCCCCCD" /> </images> </product> <product ref="xxx"> <xxx/> <xxx/...

How can I make downloadable file created by XmlDocument()

I have created a file with XmlDocument xmldoc = new XmlDocument(); Can I make this file as downloadable? without saving it? ...

Visual Studio > XML Parser > Register an URI prefix

Hey everyone, I started using Visual Studio for writing my XUL, because it gives me intellisense and validation, as I use a special XUL xml-schema. There are still some problems with this approach, that I want to fix to make VS a more usable XUL-IDE. VS doesn't know anything about the chrome-protocol and gives me an error ("The URI pr...

How to parse XML in Bash?

Ideally, what I'd like to be able to do is: cat xhtmlfile.xhtml | getElementViaXPath --path='/html/head/title' | sed -e 's%(^<title>|</title>$)%%g' > titleOfXHTMLPage.txt ...

Optimizing XML in C#

Background We have a project that was started in .NET 1.1, moved to .NET 2.0, and recently moved again to .NET 3.5. The project is extremely data-driven and utilizes XML for many of its data files. Some of these XML files are quite large and I would like to take the opportunity I currently have to improve the application's interaction w...