xml

prevent Visual Studio 2008 from creating xsc, xss files when I try to open xsd file

I used xsd.exe to generate a schema file for some XML. I want to include that schema file in my C# project in Visual Studio, but every time I add the .xsd file to my project and then double-click it to open it, Visual Studio creates these .xss and .xsc files for my .xsd file and it alters my .xsd file. How can I get it to stop automagi...

failed export of LD_LIBRARY_PATH with xerces and xml addon in firefox

I have installed: xerces-c_2_8_0-x86-linux-gcc_3_4.tar.gz on my SLED_11 (SuSE linux Enterprise) The site: https://addons.mozilla.org/en-US/firefox/addon/4522/ ask me to export this PATH: export LD_LIBRARY_PATH=/home/sigbj/xerces-c_2_8_0-x86-linux-gcc_3_4/lib/:$LD_LIBRARY_PATH Then to install the addon for xml above. The firefox retur...

Method GET to parse XML from another source into a hidden url

I am trying to parse some xml data by passing the variables with a form with the get method into my own domain. If I put the link of the XML engine in my file it parses perfectly the information. By using the form to change information dates, type of rooms, etc. i can get the variables in my url but I have no idea how to make that vars...

How can I clone nodes between documents in PHP?

Possible Duplicate: DOMElement cloning and appending: Wrong Document Error I would like to copy all the child nodes of element foo in DOMDocument A into element bar in DOMDocument B. However, using appendChild to do so apparently throws a DOM_WRONG_DOCUMENT_ERR. Is there a right way of doing this? XML Document A <foo> <...

Insert Element within specific tags

Hi, I'm trying to insert an element at a specific point within my file, then save that file out. However, I can't seem to get it right. My XML layout is like this: <?xml version="1.0" encoding="utf-8"?> <Settings> <Items /> <Users /> </Settings> This is my current code: XDocument xd = XDocument.Load(@"C:\test.xml...

XML to/from a Python dictionary

I need to use Python 2.4.4 to convert XML to and from a Python dictionary. All I need are the node names and values, I'm not worried about attributes because the XML I'm parsing doesn't have any. I can't use ElementTree because that isn't available for 2.4.4, and I can't use 3rd party libraries due to my work environment. What's the easi...

Netbeans XML Editor is clobbering my custom hibernate DOCTYPE

This is happening in hibernate, but not a hibernate problem. I'm seeing this with the default XML editor for Netbeans 6.9 We do a little trick to avoid a bunch of boiler plate in our hibernate files: <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0....

Sorting xml with simpleXML/xpath?

Hey, I have some xml, say: <Background> <Uses>14</Uses> </Background> <Background> <Uses>19</Uses> </Background> <Background> <Uses>3</Uses> </Background> How can I sort the xml from lowest Uses to highest? Maybe an xpath expression? Also, how could I just retrieve the bottom 2 Backgrounds, or the ones most recently added? Than...

Is there any way to sign an XDocument?

I would like to sign my XDocument XML document (to verify it later on). Is there any way to sign an XDocument or do you have to convert it to an XmlDocument? http://www.west-wind.com/weblog/posts/257599.aspx ...

Convert XML file to CSV in java

@Before There will be probably some duplicate questions suggestions, I don't think that is the case maybe read this first, I'll try to be as brief as possible. Title gives basic idea. Here is an example XML(case 1) : <root> <Item> <ItemID>4504216603</ItemID> <ListingDetails> <StartTime>10:00:10.000Z</Sta...

Dynamic tag names with JAXB

I am using Jersey and JAXB to build a simple RESTful webservice I have a HashMap of 'String' to 'Integer': 2010-04 -> 24 2010-05 -> 45 I need to generate an XML response which looks like this: <map> <2010-04>24</2010-04> <2010-05>45</2010-05> </map> What is the best way to generate dynamic tag names with JAXB? ...

How to get element only elements with values Stax

I'm trying to get only elements that have text, ex xml : <root> <Item> <ItemID>4504216603</ItemID> <ListingDetails> <StartTime>10:00:10.000Z</StartTime> <EndTime>10:00:30.000Z</EndTime> <ViewItemURL>http://url&lt;/ViewItemURL&gt; .... </item> It should print ...

Preparing XML Data for Chart Library

I am using a flash chart library that takes an xml file/string as input. The xml file is generated using a xml.builder file, but I am not sure the generated xml file is actually being found. If there is a (name).xml.builder file and a (name).html.erb file, does that mean both an html/xml file is generated, when format.html and format...

Android - I don't seem to have the ANIM folder or the MAINANIM.xml document... why is this?

I'm a noob... but no matter where I look in the res directory there is only main.xml and I am supposed to have res/anim/mainanim.xml and I don't. My code is here: http://stackoverflow.com/questions/3290290/please-help-me-with-frame-animaions-android-question Thanks to Cameron. I also keep getting in the java document, "id and anim ca...

Building SOAP message with XMLDocument VB.NET

I am having some problems building a properly formatted SOAP message using XMLDocument in VB.NET(C# answers are fine though). I am using the following code to manually create my SOAP message, what is happening is that the namespace prefix of the soap:Header and soap:Body are being stripped in the output XML: Dim soapEnvelope As XmlElem...

WPF two-way binding XML

I'm struggling to get to grips with WPF, more specifically performing two way binding of an xml file. Should I be using XMLDataProvider or is their another(better) option? The data is displaying fine but when I change an entry the changes aren't reflected in the xml file. The XML: <?xml version="1.0" encoding="utf-8" ?> <Licence> ...

Magento Custom Left Navigation Template displaying twice

I created a custom template (mytheme/template/catalog/navigation/left_parent_category.phtml) to display the parent categories of the current category. <?php echo '<div class="box base-mini">'; echo '<ol>'; $currentCat = Mage::registry('current_category'); if ( $currentCat->getParentId() == Mage::app()->getStore()->getRootCa...

How can I create a schema which requires certain elements, allows others, and is order-agnostic?

I want to create an XML schema that contains the following: <xs:complexType name="Record"> <!--required elements--> <xs:element name="RecordTag" type="xs:string" minOccurs="1" maxOccurs="1" /> <xs:element name="RecordSize" type="xs:string" minOccurs="1" maxOccurs="1" /> <xs:element name="RecordSection" ty...

List of rss feeds to test my feed reader

I'm looking for a list (the bigger the better) of rss feeds to test a feed reader I'm writing. I couldn't find anything using google. How can I go about testing my reader with a large number of feeds for a variety of sources? Does anyone know of any list of sources that are available out there? Thanks ...

Disgusting XML configuration with no schema - why?

This isn't a question about why XML is used for configuration files. My question is why, when XML is used for configuration files, there's no accompanying schema. log4net is a good case-in-point. You can configure it programmatically, but it's preferred that you use XML. Fine, but then why does it have to be so hard? In Visual Studi...