xml

how to capture CURL / XML data with Apache?

Hi, I'm developing a gateway script that needs to send info to another provider's server, and I need to debug the code. Is there a way, on my own Linux + Apache + PHP server to capture the CURL / XML data from this script? I know with PHP, that I could see for example the $_POST, $_GET or $_REQUEST data in a script, but with CURL I...

How to transform xml and keep newlines?

Hi, I'm trying to preserve row breaks in an xml file when transforming it to html, but I cant find a way that works. <meta> <name>Message</name> <value>Hi! I need info! Mr Test</value> </meta> And I use this xsl: <xsl:if test="name='Message'"> <tr> <th align="left" colspan="2">Message:</th> </tr> <tr> <td colsp...

XQuery, fn:id and BD eXist

Does "fn:id" function return IDREFS when it is used in a FLOWER xquery with eXists database? I can't get any example... :( TIA ...

How to deserialize xml when root declare namespaces?

I have xml: <?xml version="1.0" encoding="UTF-8"?> <wnio:Dokument xmlns:wnio="http://crd.gov.pl/wzor/2009/03/31/119/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ... > </wnio:Dokument> I want to deserialize it to object, for example: [Serializable()] [XmlRoot(Namespace = "wnio")] public class Dokument { ... } What paramet...

Google Maps markers not displayed in IE7

I managed to load the map cross-browser but when it comes to populating it with markers, it doesn't work in IE7 (markers are not displayed). Everything's fine in Firefox. The locations are stored in XML which is then parsed by javascript and markers are added. XML structure: <?xml version='1.0' standalone='yes'?> <stores> <store...

Problem while fetching xml file from server

Hi, I am trying to download an XML file(in my J2ME Application) from a location in the server. My problem is that, in the beginning of the XML file these characters-"", are getting appended. Can anybody tell me where the problem lies?? ...

How to query this XML document in C#.NET 3.5

I have an XML document of the form: <metadata> <item name="Name" type="xs:string" length="102"/> <item name="Email" type="xs:string" length="202"/> </metadata> <data> <row> <value>Daniel</value> <value>[email protected]</value> </row> <row> <value>George</value> <value>george@no-...

How to deserialize xml using XmlArrayItem

I want to deserialize xml like this: <Product> <Classification> <NewClassification>1</NewClassification> <NewClassification>2</NewClassification> <NewClassification>3</NewClassification> <OldClassification>A</OldClassification> <OldClassification>B</OldClassification> </Classification> </P...

Loading cross domain XML with Javascript using a hybrid iframe-proxy/xsl/jsonp concept?

On our site www.foo.com we want to download and use http://feeds.foo.com/feed.xml with Javascript. We'll obviously use Access-Control but for browsers that don't support it we are considering the following as a fallback: On www.foo.com, we set document.domain, provide a callback function and load the feed into a (hidden) iframe: docume...

.NET DataSet.GetXml() - what's the default encoding?

Existing app passes XML to a sproc in SQLServer 2000, input parameter data type is TEXT; The XML is derived from Dataset.GetXML(). But I notice it doesn't specify an encoding. So when the user sneaks in an inappropriate character into the dataset, specifically ASCII 146 (which appears to be an apostrophe) instead of ASCII 39 (single q...

Linq to XML: How do you determine if something of type "var" is null or empty?

So, I've got a small chunk of stabby, pointy xml that looks like this: <Groups UseGroup='True'> <Group>1264,182,1979</Group> </Groups> And I've got a small chunk of linq that gets the value from that looks like this: var group = from a in xml.Descendants("Groups") select a.Element("Group").Value; It's all fine and dandy...

how to use javascript to validate xml against schema in firefox?

I can do this in IE using ActiveXObject, however mozilla doesn't support ActiveXObject. Is there any way I can use JS to validate an XML against an XSD schema in firefox? ...

Parse/Shred Huge Complex XML to SQL Server 2008 Database (30+ tables)

I read this already: http://stackoverflow.com/questions/61233/the-best-way-to-shred-xml-data-into-sql-server-database-columns and http://stackoverflow.com/questions/223376/looking-for-a-good-bulk-insert-xml-shredding-example-for-sql-2005. The differences of why I'm posting is that I'm using BizTalk 2009 and SQL 2008. I'm receiving ...

WPF Binding XML List

Hi I want to bind the following XML to a couple of controls in WPF. Each category name should bind to the items source of a combo box, then when a category is selected in the combo box I want to bind the list of Products from the selected category to a listview Here is the XML: <?xml version="1.0" encoding="utf-8" ?> <Categories> ...

Select value with Linux command xpath (from Perl)

I want to get an attribute out of a XML-Tree. Therefor I use the command xpath from package libxml-xpath-perl. I figured out this command: virsh dumpxml save | xpath -e "/domain/devices/disk[@type='file']/source/@file[1]" This gives me file="/var/lib/libvirt/images/save.raw" How can I select the value only? (/var/lib/libvirt/image...

How to control DTD reading with .NET?

A C# program of ours reads an XML file. The XML file has standalone='no' header. The DOCTYPE used to look like: <!DOCTYPE foo SYSTEM "silly.dtd"> where silly.dtd is not sitting right there next to the file. For various reasons, I changed this to <!DOCTYPE foo PUBLIC "-//Some Public Id" "urn:outerspace:silly.dtd"> I expected noth...

Flex: Loading an XML File That Isn't Accessible By Users

We have a Flex app that is currently loading an XML file that contains Multiple Choice Question data. I don't want a user to be able to access this file via http, but if I use HTTPService to load the file (what we're doing currently) it seems as though I have to place the XML file within the public_html folder on our server. Is there a ...

C++ socket message contains extra ASCII 0 character

So this is a really strange problem. I have a Java app that acts as a server, listens for and accepts incoming client connections, and then read data (XML) off of the socket. Using my Java client driver, everything works great. I receive messages as expected. However, using my C++ client driver on the first message only, the very first c...

xml dom parsing

I can't figure out how to access the data between the inner nested tags. When I run this javascript, all I see is "Null". Here is what my xml file named "bboard.xml" looks like: <?xml version="1.0" encoding="ISO-8859-1"?> <!-- Designed by Someone --> <bulletinboard> <article> <title lang="en"><h2>eeeeeeeeegg #1</h2></title> <detail><s...

The Attribute of "ref" for XML Schema For C# Parse

Hello All, Good day. I got a problem about the attribute of "ref" for my XSD file. My code : using System; using System.Collections; using System.Xml; using System.Xml.Schema; class XmlSchemaTraverseExample { static void Main() { // Add the customer schema to a new XmlSchemaSet and compile it. // Any schema v...