xml

select for xml, nest on order by fields

SELECT [Represantative] ,[log_date] ,[customer] ,[type] ,[log_type] ,[zone_code] FROM [dbo].[ilc_ziyaret_plani_gun_degisiklikleri_v] gun_logu order by Represantative, log_date, customer for xml path , root('log_details') I need the xml nested as in the order by clause: I tried using for xml...

Google Mini cURL request returns HTML, should be RAW XML

Hey, I am quering a local google mini box on my network but im getting back HTML and not raw XML as requested. I have the output param set to xml in the GET request. my request is the following: curl http://192.168.20.196/search?q=soccer&output=xml Any help would be much appreciated, Thanks, Matt ...

Why can't I retrieve attribute values from my XPathNavigator?

I have XML something like this: <?xml version="1.0"?> <a xmlns="http://mynamespace"&gt; <b> <c val="test" /> <b> </a> And I am trying to find the value of the 'val' attribute on the 'c' tag with something like this: XmlDocument doc = new XmlDocument(); doc.Load("myxml.xml"); nsMgr = new XmlNamespaceManager(doc.NameTable); ns...

JAXB: How to avoid repeated namespace definition for xmlns:xsi

I have a JAXB setup where I use a @XmlJavaTypeAdapter to replace objects of type Person with objects of type PersonRef that only contains the person's UUID. This works perfectly fine. However, the generated XML redeclares the same namespace (xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance") every time it's used. While this is genera...

Custom XML in Word documents

Microsoft lost another patent lawsuit (see also here) and I feel the pain too. I relied on the pink tags to have some attributes associated with text spans in a word documents. Such attributes were saved in the xml as custom tags. Now, as soon as my customer upgrades Office suite they will loose the pink tags. Can you think of what feat...

SQL Server 2000 sp_xml_preparedocument - To get innerxml/innertext of a node

I have some data like at the bottom. I use SQL Server 2000 stored proc to process this data using sp_xml_preparedocument . I would like to get the data within the node PartAuxiliaryID as it is below(the exact xml as it is, not the values or attribute) to a variable. What will be the best way to do that in stored proc using sp_xml_prepar...

Write dom4j Document to xml-file with escaped '\r\n\'

Sorry for asking about quite the same issue, but now i would like to: write a dom4j Document which contains tags looking like this: <Field>\r\n some text</Field> to a xml file, but the \r\n should be escaped to &#13;&#10; org.dom4j.Document.asXml() does not work. ...

How to do namespace aware DOM traversal in IE6..IE8 xml documents?

I am implementing a javascript library that talks to a SOAP webservice. I use the XMLHttpRequest to do requests and receive responses. The SOAP responses rely heavily on multiple namespaces. For all major browsers, except all versions of Internet Explorer, I can use getElementsByTagNameNS() and getAttributeNS() to traverse and parse th...

Examples using javascript to run a GET on another URL, retrieve the xml returned and look up a specific node?

How would I get an xml document from a particular url in javascript then look up a particular sub node and get the value? ...

how to view internal jaxws logs in tomcat

I have a web service that is deployed in tomcat, and it is rejecting a soap request over https. However, I can't see any logs as to why it is doing so. I have the following set in my service endpoint implementation file: System.setProperty("javax.net.debug", "all"); System.setProperty("java.security.debug", "all"); And I pass the fol...

XPath expression to return value based on value of sibling

Here is a sample xml file that I am trying to pull data from: <rss> <channel> <item> <title>First Title</title> <description>description text</description> <component>Distribution - Maintain</component> <timeoriginalestimate seconds="3600">1 hour</timeoriginalestimate> <timespent seconds="1860">31 minutes</timespent> ...

Accessing Child nodes during Xml Serialization

How can I access the children of the Name Element during Serialization <Person> <Name> <First>John</First> <Middle>Adam</Middle> <Last>Smith</Last> <Madian></Madian> </Name> <Gender>M</Gender> </Person> [XmlRootAttribute("Person", IsNullable= false)] public class Person { [XmlElement(Elem...

Special Characters in NSString from HTML

Hello all, I'm fetching data from an XML source and parsing through it with tbxml. Everything is working fine until I get to a latin letter like the "é" it will display as: Code: &#233; I don't see a proper method of NSString to do the conversion. Any ideas? ...

How to convert XML to text file using XSLT

I'm trying convert an XML file to text using XSLT, but I don't have any experience using XSLT. Here's a sample XML file: <DOC xsi:noNamespaceSchemaLocation="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt; <DOC_REQUISITES DOC_DATE="2009-04-23" DOC_NO="99999999"/> <DOCID TradeDate="2009-04-23" Weekday="Monday" MainFirmId="Z...

How to create XmlElement attributes with prefix?

I need to be able to define an attribute with a prefix in a xml element. For instance... <nc:Person s:id="ID_Person_01"></nc:Person> In order to do this I though that the following would have worked. XmlElement TempElement = XmlDocToRef.CreateElement("nc:Person", "http://niem.gov/niem/niem-core/2.0"); TempElement.SetAttribute("s:id"...

How to build widget page using jquery, json object, and xml file in ASP.NET

Hi, I am trying to build a page which consists of different user controls which is divided in 3 columns. I have created a custom class for the page and widgets where the user controls will be loaded in. The custom class needs to be stored in an XML file, and using jQuery sortable for drag-and-drop functionality. At this point, my ques...

Visual Studio XML Editor doesn't re-validate after schema changes

I'm trying to fix my schema file so it matches the output document... the document will auto-validate once, but VS is caching the schema, so when I update the schema, VS won't go look at it again. I have to close down Visual Studio and re-start it, then it will validate the document (one time, grrr) against the new schema file. How can I...

as3 sorting xml data ?

I have xml data that I can load into my flex app; however, I need to sort it by node. I'm trying to create a combobox or listbox that can display a list of locations sorting them either alphabetically or by the category they are in... I can't get my head around how to format the xml or how to code the flash file to sort according to lo...

Flash AS3 - Problem posting XMLList Value in text area using htmltext

Well that's the problem. Creating an RSS reader. One feature is that should parse several "category" nodes from a feed. But when I load a feed, the category doesn't shows up in the text area. Flash returns no errors. Heres the code - var curStory = rssXML.channel.item[evt.target.selectedIndex] var catlist:XMLList = curStory.categor...

C# How to i store website list in xmlnode

I am trying to store website contents in XmlNode. my website structure is Site1 List1 Folder1 Folder2 a] file1 b] file2 Folder3 List2 Site2 List1 List2 Site3 ............... Site4 ......................... So how do i store it in XMLNode. my method should return whole struc...