xml

SimpleXML SOAP response Namespace issues

Hi. After spending SEVERAL frustrated hours on this I am asking for your help. I am trying to get the content of particular nodes from a SOAP response. The response is <?xml version="1.0" encoding="UTF-8"?> <env:Envelope xmlns:env="<a href="http://www.w3.org/2003/05/soap-envelope"&gt;http://www.w3.org/2003/05/soap-envelope&lt;/a&gt;...

VS 2010 web.config transformation

Hi all, I need help on web.config transformation as I'm trying to do something not documented. My web.config has an empty connectionStrings element. In debug, I'd like the transformation tool to add a configSource="file.local" to the connectionStrings element. But in release, I'd like it to add a connectionString element. So, to summa...

Properly obsoleting old members in an XML Serializable class in C# VB .NET

Hi! Sometime ago I defined a class that was serialized using XML. That class contained a serializable property Alignment of integer type. Now I have extended and updated this class, whereby a new property Position was added, whose type is another class that also has several serializable properties. The new property Position is now suppos...

Web service response differs from WSDL

Any explanation for this kind of behaviour? Part of WSDL: <complexType name="ArrayCD"> <sequence> <element maxOccurs="unbounded" minOccurs="0" name="item" type="impl:EF"/> </sequence> </complexType> <complexType name="AB"> <sequence> <element name="elem1" nillable="true" type="impl:ArrayCD"/> </sequen...

Iphone: Parsing XML with image in tablecells

I am going to develop an Iphone application which will parse the RSS feeds and display the items in my custom cell.(Cell containing the image, label, description, etc). Can somebody please help me?I would be sooo happy if somebody can help me!! Thanks so much! ...

DTD required elements ordering

I want to have list of required elements in any order defined in dtd, but have no idea how I could do this. For example, I have following definition: <!ELEMENT parent (child1, child2, child3)> This dtd declaration will successfully validate following piece of xml: <parent> <child1></child1> <child2></child2> <child3></child...

Are there any tools that estimate XML schema based on documents only?

Or to display some statistics at least. I need some statistics like this: * All documents have root node with two children and * 50% of the documents have product/picture node * Documents have between 1 and 10 product/a/comment nodes ...

SSIS XMl processing

For my job I do very big imports of (product) data. Recently we started using SSIS and it sure works better then custom .net import tools. Still after 3 projects we figured out it's more efficient to use an scripttask with c# xpath and sql statements then to use XML source and merge joins in a dataflow. Problems with a dataflow Somet...

VB 6.0: How can I see XML variables in Immediate Window

I am debugging a VB 6.0 program that is using XML methods, etc... so I wish to be able to see how these XML variables in my program look like when I am debugging it ... How can I do that? ...

Flex XMLListCollection sort on nested tags

Hi all, I have a requirement of sorting the <ename> in the XML with in the branch. The XML goes like this: <company> <branch> <name>finance</name> <emp> <ename>rahul</ename> <phno>123456</phno> </emp> <emp> <ename>sunil</ename> <phno>123456</phno> </emp> <emp> <ename>akash</ename> ...

JAXB marshals XML differently to OutputStream vs. StringWriter

I apologize if this has been answered, but the search terms I have been using (i.e. JAXB @XmlAttribute condensed or JAXB XML marshal to String different results) aren't coming up with anything. I am using JAXB to un/marshal objects annotated with @XmlElement and @XmlAttribute annotations. I have a formatter class which provides two meth...

Italic not working in XML?

Can anyone explain why all HTML tags are working/rendering in my XML but italic ? Also, you can't put classes in xml right, I tried that it it didn't seem to recognized any classes. Sorry getting familiar with XML ...

How to generate XML (in String representation) in java

I have defined a java class, but only need to output some of the fields of this class into an XML. The returned type must be a String. I first opted for the easiest way using a StringBuffer. However, when I tried to process the output String represenation, it failed. I think it is mostly likely because there are some characters that are ...

How Do I Set XML Content-Type in Flex 3?

Hi, I've got a Flex 3 project. Flex makes an ExternalCall to some Javascript. The Javascript is then turned into XML. But, my xml isn't parsing in IE. It works in all other browsers. I think that the problem is that I haven't set the XML's content-type and IE doesn't like that. So my code looks like: myReturn = '<myXMLReturn>' + my...

find xml element by attribute

Using JQuery or Javascript how would I return 'Mary Boone' from the xml below starting out with the show 'id' attribute of '2'? I'm thinking something along the lines of - var result = xml.getElementByAttribute("2").gallery.text(); the XML: <shows> <show id="1"> <artist>Andreas Gursky</artist> <gallery>Matthew M...

Xml Parsing with JQuery Issue

Hi, can anyone help me with this XML parsing issue? My xml is: <?xml version="1.0" encoding="utf-8"?> <shop title="ramesh"> <raj title="title">name</raj> </shop> My jquery is : $(function(){ $.get("shop.xml", function(data){ var shopInfo = $(data).find("shop").attr('title'); var showowner = $(data).find("raj")...

Create xml type with no body

Hopefully this is an easy question. How can I define an XML type such that the type doesn't have a body. As an example I can define the Foo type as follows... <xs:complexType name="Foo"> <xs:simpleContent> <xs:extension base="xs:string"> <xs:attribute name="id" type="xs:integer" use="required"/> </xs:ex...

WCF MessageContract Help - MessageBodyMember with hyphenated name

Hi All, I need a bit of WCF help. This project uses message contracts. The transport seems to work ok. I have this code for a response type. namespace tpoke.Contracts { [MessageContract(IsWrapped = true)] public class AuthenticationResponseMC { [MessageBodyMember(Name = "authentication-token")] public Guid Authenticatio...

What does unicode character &#10; represent?

The unicode is &#10; and it's being used in an XML document. ...

Traceability with XSD

I am trying to let my XML schema handle a little traceability functionality as I'm gathering requirements while I read through some functional specifications. (Not ideal for requirement management, but at least its a start.) What I'm doing is creating a <functionalSpec> tag for each functional specification I am currently reading throug...