xml

System.FormatException: The specified string is not in the form required for an e-mail address.

hi i am using asp.net and xml im making a form tht send an email but it gives me an error the email adresses come from the xml file The specified string is not in the form required for an e-mail address. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for...

Convert reportviewer data to xml.

How can we convert data displayed in a reportviewer to an xml file? ...

Resize image and add an overlay image without using tables and without losing style in xml

I am building a system to create a "fake video embed" with thumbnails and play buttons over them. The images are coming from a service at a standard size, so have no choice but to resize them in HTML. Another restriction is, the codeblock has to be self-contained (like an embed code) and not reliant on any external stylesheets. I'm overl...

How to consume XML from RESTful web services using Django / Python?

Should I use PyXML or what's in the standard library? ...

Downloading images via WCF vs WebClient

I'm fetching data (images, 200-400kb) from WCF service to Silverlight client and notice that the Silverlight stops for a fraction of second every time such message arrive. It's not really serious but the animation stops for a while and the whole user experience is ruined. Question time: 1) Do you think it would be beneficial to use Web...

Blank xmlns="" Attributes From Import

Hi all, I'm attempting to do a transform on an XML document. My XML transform can result in two different types of base element depending on the value of a certain element: <xsl:template match="/"> <xsl:choose> <xsl:when test="/databean/data[@id='pkhfeed']/value/text()='200'"> <xsl:call-template name="StructureA"> ...

loadin components through xml

How to load flex components through xml? ...

XSD Schemas allowing special/reserved characters in string element tag

In a string element tag the XML parser will get confused if it finds the following characters ' " < > & (i.e. lets say the name of company has been retrieved from a database field, and it looks like this: "Smith & Sons") The question is - how can you design your XSD to ignore these characters if found within an element? ...

What's the best way to customise and view Amazon Web Service Usage reports ?

Hi, does anyone know the best tools to use to view amazon web service usage reports? I have downloaded previous reports as .csv and opened in Excel. I want to be able to generate custom reports with the data however and so think XML is a better bet and to use something like Altova XMLspy with a stylesheet to generate custom reports. Is ...

Loading HTML fragments asynchronous in a web page that is generated using XSLT & XML

Technology: Dot Net, ASP.Net We have articles stored in XML repository and article contains multiple sections. These XML files are transformed to HTML using XSLT for browser rendering. New requirement is to allow users to comment on each section (not on the article!) and when the article is shown we also show the comments (but based h...

Transformation error: "The current event is not START_ELEMENT but 2"

Similarly to an older post I'm trying to access a web service with JAX-WS using: Dispatch<Source> sourceDispatch = null; sourceDispatch = service.createDispatch(portQName, Source.class, Service.Mode.PAYLOAD); Source result = sourceDispatch.invoke(new StreamSource(new StringReader(req))); System.out.println(sourceToXML(result)); where:...

loading flex components using xml

How to load flex components using XML. The scenario is simple as like this, i need three buttons to appear in my panel, but the option true or false whether to appear should be in xml. ...

C# LINQ - reading an XML

Hi, i need to store all the informationen from the xml in an array. My code doesn't work, because I always get just the first item from the xml. Does anyone know how to fix this? XDocument xdoc = XDocument.Load("http://www.thefaxx.de/xml/nano.xml"); var items = from item in xdoc.Descendants("items") ...

Avoid looping xml in jstl

I would like to do something like this: <x:out select="$productXML/product/sizes/size[<c:out value='${param.sizeIndex}'/>]" escapeXml="false"/> but I think the only way to do it is like this: <x:forEach var="size" begin="${param.sizeIndex}" end="${param.sizeIndex+1}" select="$productXML/product/sizes/*"> <x:out select="$size" e...

create dynamic navigation from xml file in flash cs3

action script newbie here :-) What I want to do is this, hand an xml file to a swf and have the swf generate a dynamic text box and button for each of the links in the xml file a rudimentary navigation here's the xml <?xml version="1.0" encoding="UTF-8"?> <page> <page name="Page Name 1" url="/page-1/" /> <page name="Page ...

Getting html attributes from DOM trees ( libxml )

I'm using this program to display a list of all html tags in a given file: #include <cstdio> #include <libxml/HTMLparser.h> #include <libxml/tree.h> #include <iostream> #include <cstring> using namespace std; static void print_element_names(htmlNodePtr a_node) { htmlNodePtr cur_node = NULL; for (cur_node = a_node; cur_node!=N...

Simplest way to query XML in Java

I have small Strings with XML, like: String myxml = "<resp><status>good</status><msg>hi</msg></resp>"; which I want to query to get their content. What would be the simplest way to do this? ...

Creating an xml file from xsd in .NET

Hi everyone, I would like to know the best method for solving this problem: I would like to create a blank template xml from a xml schema. All the required elements and attributes would be created and their values would be all empty strings. The next step is how to determine which child xml nodes a certain node could have. eg. I would s...

Printing XML into HTML with python

I have a TextEdit widget in PyQt that I use to print out a log in HTML. I use HTML so I can separate entries into color categories (red for error, yellow for debug, blue for message, etc), but this creates a problem. Most of the debug messages are XML. When I use appendHtml on the widget, it strips out all the tags. How can I pretty pri...

How to programatically modify assemblyBinding in app.config?

I am trying to change the bindingRedirect element at install time by using the XmlDocument class and modifying the value directly. Here is what my app.config looks like: <configuration> <configSections> <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Cu...