How can I embed an XDocument within XAML? I've got the following but Visual Studio won't let me put any XML in the XDocument:
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:xlinq="clr-namespace:System.Xml.Linq;assembly=System.Xml.Linq"
...
I have a bit of a newbie xml schema question. I believe the answer is that what I need to do is not possible with schema, but I'd like to be sure. The problem is that I have a webservice that returns a response with one type of root element on success (say <Response>), and on a complete failure, returns a document with a different root e...
I am executing this query
select category "ROOT/category",
question "Category/question",
option1 "Category/option1"
from testDB2 for XML PATH ('ROOT') , ELEMENTS
Presently the database has three entries and the xml file i get is this
<ROOT>
<ROOT>
<category>maths</category>
</ROOT>
<Category>
<question>2+2?</question>...
Is there anyway to force Internet Explorer to prompt for download of XML files instead of automatically displaying them? A code solution or just a set of IE configuration steps would be fine.
Even if I use the wrong extension, IE uses "content sniffing" to determine that is XML and opens it automatically anyway.
I'd rather have the Ope...
I'd like to implement the Master-Detail pattern in my WPF application, so that when the user selects an item in a ListView its details are displayed elsewhere. However my data source (some XML) is not structured in a hierarchical manner; rather, each item stores a list of IDs which can be used to identify the details in another section o...
This is probably a really easy answer, but for the life of me I can't figure it out.
I want to display certain content depending on which child element is being displayed but I don't know how to test for the element I want. I want to see if the start, stop, and note elements exist
<xsl:template match="protocol[@id=$protocolNumber]">
<h...
Hello, could anybody tell me how to parse XML file inside a JSF page?
The thing's that I've got XML file and want to put some data from it into my JSF page. My first thought was to include JSTL Core and XML libs and to do something like this:
<c:import var="some-info-doc" src="some-info.xml" />
<x:parse var="some-info-xml" xml="some-...
I need to read a large XML document from the network and split it up into smaller XML documents. In particular the stream I read from the network looks something like this:
<a>
<b>
...
</b>
<b>
...
</b>
<b>
...
</b>
<b>
...
</b>
....
</a>
I need to break this up into chunks of
<a> <b> ... </b> <a>
(I only actually need the <b> ......
I have a visual basic file with a number of functions I want to use inside my XSL. I can build it as a dll and reference in my XSL project but I don't know how to reference it in my XSL file. I am using visual studio.
I get the error "Cannot find the script or external object that implements prefix..."
I want to do something like:
xml...
I have the following XML:
<users>
<user>
<location>ny</location>
<status>1</status>
</user>
<user>
<location>nj</location>
<status>1</status>
</user>
<user>
<location>pa</location>
<status>50</status>
</user>
</users>
What I actually need is all users in ny or nj who also have a status of 1.
Based on the previous a...
We have a little in-house LMS with courses built in Flash. Scores are updated and retrieved with POSTs to PHP scripts which query a MySQL database. All the course content and quiz questions are in xml files. Those XML files are easily accessible from a user's Temporary Internet Files (sort of SCORM style, for those familiar with it) and ...
I'm very new to PHP and I have a small task of displaying a class list from an XML file. I have managed to figure that part out that took longer than expected. I'm running into some descriptions that have html characters that are not displaying on my page. I have tried numerous ways and nothing seems to work for me. Please take a loo...
Hi, I haven't met XML and JSF working together. I mean having structure and dictionaries defined in XML and representation in JSF. It will be nice to hear your opinion about this idea.
Consider creating a kind of project-info.xml. It could contain something like this:
<project-info>
<project-name>My project</project-name>
<menu...
Given an XML document like this:
<!DOCTYPE doc SYSTEM 'http://www.blabla.com/mydoc.dtd'>
<author>john</author>
<doc>
<title>&title;</title>
</doc>
I wanted to parse the above XML document and generate a copy of it with all of its entities already resolved. So given the above XMl document, the parser should output:
<!DOCTY...
I'm really not liking my experience with php but I think it is a learning curve. Can someone look at my code and let me know why my html tags don't show for some of my classes?
$g_books = array();
$g_elem = null;
function startElement( $parser, $name, $attrs )
{
global $g_books, $g_elem;
if ( $name == 'AFFILIATEXML' )
...
Hi,
i have one performance problem with XML and ListView:
i have XML file with about 12000 nodes (yes, it it very much, but all nodes are necessary). This file has the following structure:
<?xml .... ?>
<MyRootNode>
<node name="name1" lang="en" artist="aaa" genre="dsdsds" dsadasd="dsdsd" />
...
<node name="name12000" lang="en" artist=...
Hi all,
I’m using XmlSerializer to deserialize complex object, using XSD auto-generated classes. But when it comes to enumeration, there is some problem,
I want some attribute to be restricted to specific values, such as:
<xs:simpleType name="choiceType">
<xs:restriction base="xs:string">
<xs:enumeration value="Yes"/>
...
I've got an XMLTextWriter writing to a Stream of a WebRequest. Everything works as it should:
Dim wr As WebRequest = WebRequest.Create("https://wwwcie.ups.com/ups.app/xml/ShipAccept")
With wr
.Method = "POST"
.ContentType = "application/x-www-form-urlencoded"
End With
Dim requestStream As Stream = wr.GetR...
Here are the steps I've taken so far to work with an XmlDocument being returned by a 3rd party DLL.
I saved the XmlDocument as SegmentationSummary.xml.
I used XSD.exe to create SegmentationSummary.xsd.
I used XSD.exe to create SegmentationSummary.cs.
Here is a sample of SegmentationSummary.cs. Note that ShmResult is the root node ...
When I try to edit an XML file in the XML Editor of Rational Application Developer for WebSphere Software version 7.5.4, the program becomes unresponsive.
title bar has "(Not Responding)" appended to it
menu bar disappears
cursor switches to hourglass
window can be dragged and it gets repainted normally
window can be minimized and rest...