xml

Unable to make request using SOAP to a webservice

Hi, My requirement is that I will have SOAP data in XML.I will read from the file, and then send request to a webservice.Then, I need to write the response to a file. I am using vs 2005. XmlDocument doc = new XmlDocument(); doc.Load(@"path to xml file"); HttpWebRequest req = (HttpWebRequest)WebRequest.Create("http://www...

Problem with saving .doc as .xml

What I'd like to achieve is to force MS Word not to split specific strings when saving .doc or .rtf file as .xml. For example, now from something like: Something: ***TABLE_NAME.COLUMN_NAME*** or Something: AAATABLE_NAME.COLUMN_NAMEBBB or anything similar I get: <w:p wsp:rsidR="00537583" wsp:rsidRDefault="00AF6BDF" wsp:rsidP="...

Linq XML Dynamic building.

I am building an xml file. Parts of the file are static. Some of the file is dynamic. My code has an error of “Null object reference”. Any tips would be awesome. private XElement BuildDataElement() { // this is going to be more complicated return new XElement("data"); } public void TestXML(string fname) { // b...

How do I run an XSLT file?

Alright this seems like a stupid question but I can't figure it out. I'm writing an XSLT file to translate an XML document into an XHTML document. I've used both Visual Studio and XML Notepad 2007 to preview the results of my XSLT file, but now I want to actually write out a real XHTML file so I can see how it looks in other browsers. ...

What would be your choice of Perl XML Parsers for files greater than 15 GB?

I know there are some very good Perl XML parsers like XML::Xerces, XML::Parser::Expat, XML::Simple, XML::RapidXML, XML::LibXML, XML::Liberal, etc. Which XML parser would you select for parsing large files and on what parameter would you decide one over another? If the one you would like to select is not in list then please suggest it. ...

Sourcing multiple xml docs from single xslt.

I am trying this and cannot seem to get it to work. Can someone take a look and see if I am missing something obvious. I am referencing the extra doc like this in test.xsl. <xsl:value-of select="document('/customercare/library/test/test1.xml')/resources/resource/name" /> This is the xml test1.xml. <resources> <resource> <n...

Deep Nested XML

I am trying to display a list of items in a datagrid from an XMLList. <Series no="1"> <file> <filenum>1</epnum> <prodnum>4V01</prodnum> <title>Series #1 - File #1</title> </file> <file> <filenum>2</epnum> <prodnum>4V02</prodnum> <title>Series #1 - File #2</title> </file> </...

How can I extract values from the XML::Simple's data structure?

I'm trying to figure out how to parse the <current></current> values from the first 2 (37% and 61.8F) in this XML. I can't figure it out since it seems that they have the same field names and are all under 'sensor'... any help would be appreciated... Code in Perl: #!/usr/bin/perl use XML::Simple; use Data::Dumper; use LWP::Simple; $...

[python] How to update a xml file?

Hi. I have a xml file that I would like to update after it has already data. I thought about open the xml file in "a" (append) mode. The problem is that the new data will start to be dumped after the "root" tag has been closed. What I wanted someone to be kind enough to tell me is how can I delete the last line of a file, and then sta...

How do I get html attribute order to be consistent when testing in Javascript.

I have a component that creates a set of text like this in the innerHTML: fourty two<br><br><input value="Select" type="button"> upon setting the innerHTML, the browser will sometimes parse this text, producing: fourty two<br><br><input type="button" value="Select"> This behavior seems browser dependent, because I can get my tests...

Validating XML with multiple XSD using relative paths in .NET

I'm trying to write a generic VB.NET (VS2005) function to validate an XML document against an XSD. This works fine until I use an XSD with a relative path include like: <xs:include schemaLocation="test.02.xsd" /> It can never seem to find what is included in any secondary documents. Here is my original function below. I've been pla...

XmlNodeList (why is this empty)

I can't understand why this NodeList is Empty XmlDocument document = new XmlDocument(); document.Load(xmlpath); XmlNodeList nodes = document.SelectNodes("/StructureResponse/rootItem/attributes/Attribute"); Here the XmlFile <?xml version="1.0" encoding="utf-8"?> <StructureResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instan...

Excel to XML in .NET3.5

How to convert Excel file to xml file using .NET framework 3.5 Please tell the approaches The format of excel sheet is xls and convert to standard xml format ...

Android: customize application's menu (e.g background color)

What is the way (if there is a way) to customize the menu (the one triggered by the MENU button of the phone). I'm especially interested in two things: changing the background color from the standard light gray into a darker gray how the menu items are aligned. I have 4 items and they are automatically aligned 2x2, but I would prefer t...

Finding a specific XML element based on an ID using Linq

I want to find a section of xml based on a criteria so I’m using linq to XML. Unfortunately the result is always null so I guess I’ve done something wrong. Shown below is an example of the XML I’m parsing. <Stuff> <ItemsA /> <ItemsB /> <ItemsC> <Item xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacont...

Writing an XML file using python

Hello All, I have to write an xml file using python standard modules (not using elementtree, lxml etc) The metadata is a SAML identity provider metadata and is of the form - <?xml version="1.0"?> <EntityDescriptor xmlns="urn:oasis:names:tc:SAML:2.0:metadata" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:ds="http://w...

Twitter API method (statuses/user_timeline) returning all user data against every tweet?

Is it just me or is it ridiculous that when retrieving users statuses, every single tweet also contains the full information about the user? So if I want to retrieve 200 tweets from a single user, I will get the user information (name, profile colours, description, etc.) duplicated 200 times! The user information per tweet is probably 15...

what is best xml study guide?

what is the best xml study guide to start with? am a new beginner to the xml world ...

Parse XML with hpricot, get attributes.

My xml: http://www.google.ru/ig/api?weather=Chelyabinsk <forecast_information> <city data="Chelyabinsk, Province of Chelyabinsk"/> </forecast_information> How to get city data for example? Not inner_html, just attributes like city data, postal code etc. ...

Alternative in ActionScript for "DataMember" in C#

Hi there, currently I'm translating an app from C# into ActionScript (Silverlight to Flex) and I need to serialize some XML content in ActionScript. Now, unfortunately I need the variables to have an other name than the nodes in the XML file. I tried a workaround with getters and setters. It worked for setting the variables, but I fail...