|
Because it's a B2B interface, and the specification I'm working from specifies an XML schema that the input parameter and return value have to comply with.
Since the remote client will be sending XML, and I'll have to return XML, and I use XML internally in the service, there's really not much point to converting the data from XML into some artificial object model, just to convert it back to XML.
Grim (aka Toby) MCDBA, MCSD, MCP+SB
SELECT * FROM users WHERE clue IS NOT NULL
GO
(0 row(s) affected)
|
|
|
|
|
Hi.
I'm using the GetListItems method in the List web service for sharepoint to pull a sharepoint list into an infopath document. I have that part of the code working, but how do I get the data to infopath itself?
-- Steve
|
|
|
|
|
Hi,
My requirements are that, I need to create an XML file containing data which I would retrieve from database.
What would be the best possible approach for such a problem ?
Which parsers should I opt for if I use Java as my programming language ?
Thanks and Regards,
Abdul Qadir
|
|
|
|
|
What kind of database? Can it export data as XML (e.g MSSQL can)? Is there any reason why not to use standard Java classes (JAXP) for working with XML? (link here[^])
David
|
|
|
|
|
Hi David,
The database is Oracle 9i. The values in the XML tags are the field values from database. So there are two tasks : 1) Retrieving values from database 2) Write a XML validating against a schema.
Will I be able to validate against a schema while writing a XML using JAXP?
Thanks and Regards,
Abdul Qadir
|
|
|
|
|
Hi people,
i have to change my html-form tags to xform tags in my xsl-file. i have added the xform namespace and changed the html-tags to xform-tags. and added <object id="FormsPlayer".. like in xhtml. but after transforming i dont get the form. i really couldn't find anything about it on the web. it is always about xhtml. can any body give me a link or a tip to begin??
i am sending now the original version with html-form.
thanx in advance
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xf="http://www.w3.org/2002/xforms" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/2002/06/xhtml2">
<xsl:param name="format"></xsl:param>
<xsl:param name="e_anfang"></xsl:param>
<xsl:param name="e_anzahl"></xsl:param>
<xsl:template match="page">
<html>
<head><title>Cocoon - MA.BS.KY.CK</title></head>
<body bgcolor="#CCFFFF">
<h1 align="center" style="font-family:arial; font-size:30pt; color:#000066 ">Cocoon Projekt - Gruppe MA.BS.KY.CK</h1>
<xsl:apply-templates/>
<div style="text-align:left; padding:20px; margin:25px; position:relative; left ; top ;background-color:#BDEDFF;
position:relative; left ; top ;height:100; width:%100;border:thin solid lightblue;">
<p style="position: absolute; left ; top ;font-size:23pt; font-weight:bold; color:darkblue;font-family:arial;font-style:italic">Tagebuch</p>
<br></br><br></br><br></br>
<div style="background-color:#B4CFEC">
<br></br>
<p id="t2">2- Welches Übungsblatt wollen Sie sehen?</p>
<form action="ausgabe">
<select name="e_anfang">
<option>1</option><option>2</option><option>3</option><option>4</option><option>5</option><option>6</option><option>7</option>
</select>
<select name="format">
<option>pdf</option><option>html</option>
</select>
<input name="e_anzahl" type="hidden" value="1"></input>
<input type="submit" value="OK"></input>
</form>
<br></br>
</div>
</div>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
|
|
|
|
|
Hi can someone please help
I have a XML and XSD file. My XML file holds three tables. 1 table holds the main data and the other two are used for lookups.
I want to display the data from the XML file in a grid, having used the lookup table to reslove descriptions.
this is my XML file
<newdataset>
<analysis>
<id>2
<description>test desc
<station>
<id>0
<description>All Listening
<analysis_id>2
<station_id>0
<demographic_id>1
<sweep_id>2004Q1
<value>99.9
<demographics>
<id>1
<description>old people
I would like to use VB.Net. I would also like to do some seltion on the XML file to selcct certain data such as demographic ID etc.
has anybody else done this?
|
|
|
|
|
Hi kiterjohnso
Assuming you're outputting HTML, this XSL should do the transformation you're after. Then you can use the ASP.NET XML web control to perform the XSLT transformation on the XML file server side.
<?xml version = "1.0"?>
<xsl:stylesheet version = "1.0"
xmlns:xsl = "http://www.w3.org/1999/XSL/Transform">
<xsl:template match = "NewDataSet">
<table border = "2">
<xsl:for-each select = "Data">
<xsl:variable name = "Analysis_ID">
<xsl:value-of select = "Analysis_ID"/>
</xsl:variable>
<xsl:variable name = "Station_ID">
<xsl:value-of select = "Station_ID"/>
</xsl:variable>
<xsl:variable name = "Demographic_ID">
<xsl:value-of select = "Demographic_ID"/>
</xsl:variable>
<tr>
<td>
<xsl:value-of select = "../Analysis[ID =
$Analysis_ID]/Description"/>
</td>
<td>
<xsl:value-of select = "../Station[ID =
$Station_ID]/Description"/>
</td>
<td>
<xsl:value-of select = "../Demographics[ID =
$Demographic_ID]/Description"/>
</td>
</tr>
</xsl:for-each>
</table>
</xsl:template>
</xsl:stylesheet>
I think you may want individual records in your XML file though, e.g.
<Demographics>
<Demographic />
<Demographic />
<Demographic />
</Demographics>
Otherwise, I don't see how the XPath can distinguish between multiple Demographic, Section and Analysis table rows.
|
|
|
|
|
Hi toujin,
Thanks for this.
I am actually trying to develop a window app in VB.net. I was hoping to use a grid control.
My XML file is as below (my previous attemp went a bit wrong!)
<?xml version="1.0" standalone="yes"?>
<NewDataSet>
<Analysis>
<ID>2</ID>
<Description>test desc</Description>
</Analysis>
<Station>
<ID>0</ID>
<Description>All Listening</Description>
</Station>
<Data>
<Analysis_ID>2</Analysis_ID>
<Station_ID>0</Station_ID>
<Demographic_ID>1</Demographic_ID>
<Sweep_ID>2004Q1</Sweep_ID>
<Value>99.9</Value>
</Data>
<Demographics>
<ID>1</ID>
<Description>old people</Description>
</Demographics>
</NewDataSet>
I would like to join these tables (or nodes?) to each other as you would with relational tables.
Is this possible or am i trying to use XML files for something it is not able to do.
Many thanks for your help
|
|
|
|
|
hi,
I need to get only the values of 2 nodes in the whole XML document and Even if the nodes are repeated in the XML document I need to get only the first nodes value.
Can any one suggest how to do this with the sample code.
Thanks in advance,
Satish.
|
|
|
|
|
OK, I'll try. Use Sytem.Xml.XmlTextReader for this.
This is only example, since I don't know what nodes you want to read or how your XML file looks like.
int i = 0;
while( reader.Read() && i<2)
{
if( reader.NodeType == XmlNodeType.Element)
{
i++;
node1 = reader.InnerXml;
}
}
Does it help?
David
|
|
|
|
|
I want to make a chatting application using web services. Ne1 have an idea on how to do this?
Ur contribution is extremely valuable
|
|
|
|
|
Hi all,
I have a .xml file that looks similar to this,
<real_time_data_screen>
<screen_title>
<english>Screen Title</english>
<alternate_language>xzScreen xzTitle</alternate_language>
</screen_title>
<screen_classification>4294967295</screen_classification>
<screen_group>256</screen_group>
<guage_configuration>
<name>
<english>Guage Name</english>
<alternate_language>xzGuage xzName</alternate_language>
</name>
<guage_id>2</guage_id>
<units>
<english>Units</english>
<alternate_language>xzUnits</alternate_language>
</units>
<minimum>1</minimum>
<maximum>10</maximum>
<sections>
<number>10</number>
<limits>10</limits>
<color>234</color>
</sections>
</guage_configuration>
<analogue_variable>
<name>
<english>Variable Name</english>
<alternate_language>xzVariable xzName</alternate_language>
</name>
<input_values>
<minimum>1</minimum>
<maximum>10</maximum>
</input_values>
<output_values>
<minimum>1</minimum>
<maximum>10</maximum>
</output_values>
<needle_color>234</needle_color>
<guage_id>2</guage_id>
</analogue_variable>
<digital_led>
<name>
<english>LED Name</english>
<alternate_language>xzLED xzName</alternate_language>
</name>
<variable_id>2</variable_id>
<clear_color>255</clear_color>
<set_color>0</set_color>
</digital_led>
</real_time_data_screen>
I need to read through this file and create objects and update attributes depending on the data in this file. The objects will be screen, gauge, analogue and digitalLed. I've got very basic knowledge of xml and can just about read through the file and get elements and the corresponding value. How would I best go about reading throuh the file and when I find a screen tag (for instance) create a screen object and anything within that tag be written to the object.
Hope this makes sense and thanks in advance.
|
|
|
|
|
Not any ideas???
|
|
|
|
|
you may want to have a look at serialization check out http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnexxml/html/xml01202003.asp[^]
or maybe do a search on google for serialization. I think (not sure here) but you need to have an object already defined before you can deserialize xml to it.
Another way (and im not sure if it is a good way) would be to go through the xml similar to this way:
System.Xml.XmlDocument doc = new System.Xml.XmlDocument();
doc.load(xmlSource);
XmlNode screenNode = doc.documentElement.selectSingleNode("//real_time_data_screen")
now you have your screen portion of the xml and you can use that node to select whatever you want from the screen section e.g.
screenNode.selectSingleNode("//screen_title")
Something like that I anyways.
|
|
|
|
|
Thanks for the help. I'll look at it over the weekend and hopefully sort it out. I've sort of got it doing what I want but it's not retty and I know there's a better way.
Thank again for the pointers.
|
|
|
|
|
This is what I came up with,
I used the XmlTextReader class to read start elements and then read the element strings. Info on the XmlTextReader class can be found here
Here's a small sample
vReader->ReadStartElement ( "screen_title" );<br />
m_screen->EnglishTitle = vReader->ReadElementString ( "english" );<br />
m_screen->AlternateTitle = vReader->ReadElementString ( "alternate_language" );<br />
vReader->ReadEndElement ();
m_screen->Classification = vReader->ReadElementString ( "screen_classification" );<br />
m_screen->Group = vReader->ReadElementString ( "screen_group" );
Not great but for small simple Xml files this seems to do the job required.
|
|
|
|
|
Hello,
What are the minimum IE requirements for DOM and XSLT?
|
|
|
|
|
What do you mean by minimal requirements? Version of IE? here[^] are features of newest IE... look for DOM and MSXML features. However I don't know since when these features are present in IE, nor do I know if it was really your question.
David
|
|
|
|
|
Version 5, I believe. But you can download the MSXML dll seperately, I dunno how well it fits in with IE if you do.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I have just been put in charge of designing an infopath form to integrate into sharepoint services. Since I'm new to infopath, I need some help with a few things. First, I need to be able to load a picture from a link on the sharepoint list without using base64. Second, I have to have a text box which will update the database entries shown as the user types. Right now I have been using conditional formatting, but I'm unsure how to get the text box to trigger it after every character entered in the control.
Thanks in advance
-- Steve
|
|
|
|
|
Hi! I was just given a project to read XML from a server and display the contents in our software. I figure there's an XML parser out there I wouldnt have to reinvent it, but I'm not sure what/where/how etc. I learned XML/XSL/XSLT 2 yrs ago, barely used it, and never with C++.
CAn someone give me info/advice on where to start? I'm not a DOM/COM expert just a C++/VC++ developer who's done more communication development than web stuff.
Any help would be useful. I have books on XML/XSL/XSLT, but none relating it to C++.
THanks in advance.
-C
|
|
|
|
|
Wheatbread wrote:
I figure there's an XML parser out there I wouldnt have to reinvent it, but I'm not sure what/where/how etc.
Have you tried this[^]?
David
|
|
|
|
|
I'm looking for any C++ developers interested in testing a new XML library focusing on a simplistic public interface. Developers of almost any skill are welcome to submit a request. Either e-mail me directly or leave a message along with your e-mail address in this topic. A lot of people have expressed a great interest in the project, and I along with them, believe it'll create a massive impact in the world of Open Source.
Just send the e-mails to skonen@gmail.com . Anybody who is interested in giving it a try needs to be proficient in English and have no fear with letting their opinions be heard.
|
|
|
|
|
Hi,
I am including System.XML but
XMLTextReader reader ;
this statement is creating build time errors.
"The type or namespace name 'XMLTextReader' could not be found (are you missing a using directive or an assembly reference?)"
Any idea about this ?
|
|
|
|