|
Thank you, that worked perfectly.
|
|
|
|
|
I need to make a letter template using xml in vb.net
eg after creating template when use clicks a button in form template must be loaded there he must able to type anything such as
<name></name>
<u><b><font name="comic sans"><u>hi</font></b></u>
as above when you type name it must retrieve in order each customer name and under that must print hi according to requirement changing the font bolding and underline it
its urgent please please
Thanks please email to aynka2000@yahoo.com
|
|
|
|
|
there is a xml file: price.xml
<price>
<comdt>
<Tname id=0>AAA</Tname>
<Tprice>0</Tprice>
</comdt>
<comdt>
<Tname id=1>BBB</Tname>
<Tprice>0</Tprice>
</comdt>
</price>
the price is null,
now I have a array,arrprice(i),
arrprice(0) is AAA's price,
arrprice(1) is BBB's price,
How to use the arrprice(i) update the xml file?
I tried this way,
For x = 0 To 1
Set objprice = objDom.SelectSingleNode("//price/comdt"&[x]&"/Tprice")
objprice.Text = arrprice(x)
but it doesn't work.
Thank you!
|
|
|
|
|
Set objprice = objDom.SelectSingleNode("//price/comdt[" & x & "]/Tprice")
"When the only tool you have is a hammer, a sore thumb you will have."
|
|
|
|
|
When I use Microsoft's sproxy.exe (version 7.00.9466) to create a web reference in a Visual C++ application, I get an error message: SDL1000 : Not enough storage is available to complete this operation. If I remove the fault element from the operation element, the header is generated. See wsdl below. Any ideas?
Thanks,
Rick
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
="" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://xmlns.catch.com/ws/types" xmlns:tns="http://xmlns.catch.com/ws" name="RemoteAccess" targetnamespace="http://xmlns.catch.com/ws">
<types>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
="" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://xmlns.catch.com/ws/types" targetnamespace="http://xmlns.catch.com/ws/types">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/">
<complextype name="WebServiceException">
<sequence>
<element name="errorCode" type="int">
<element name="message" type="string">
<message name="RemoteAccessProvider_endSession">
<message name="RemoteAccessProvider_endSessionResponse">
<porttype name="RemoteAccessProvider">
<operation name="endSession" parameterorder="">
<fault name="WebServiceException" message="tns:WebServiceException">
<binding name="RemoteAccessProviderBinding" type="tns:RemoteAccessProvider">
<operation name="endSession">
<soap:body encodingstyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="http://xmlns.catch.com/ws">
<soap:body encodingstyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="http://xmlns.catch.com/ws">
<fault name="WebServiceException">
<soap:fault encodingstyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="http://xmlns.catch.com/ws/">
<soap:operation soapaction="">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc">
<service name="RemoteAccess">
<port name="RemoteAccessProviderPort" binding="tns:RemoteAccessProviderBinding">
<soap:address xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" location="http://localhost/ws">
|
|
|
|
|
re: reposting wsdl
<?xml version = '1.0'?>
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ns2="http://xmlns.catch.com/ws/types"
xmlns:tns="http://xmlns.catch.com/ws"
name="RemoteAccess"
targetNamespace="http://xmlns.catch.com/ws">
<types>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns="http://xmlns.catch.com/ws/types"
targetNamespace="http://xmlns.catch.com/ws/types">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="WebServiceException">
<sequence>
<element name="errorCode" type="int"/>
<element name="message" type="string"/></sequence></complexType>
</schema></types>
<message name="RemoteAccessProvider_endSession"/>
<message name="RemoteAccessProvider_endSessionResponse"/>
<portType name="RemoteAccessProvider">
<operation name="endSession" parameterOrder="">
<input message="tns:RemoteAccessProvider_endSession"/>
<output message="tns:RemoteAccessProvider_endSessionResponse"/>
<fault name="WebServiceException" message="tns:WebServiceException"/></operation>
</portType>
<binding name="RemoteAccessProviderBinding" type="tns:RemoteAccessProvider">
<operation name="endSession">
<input>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="http://xmlns.catch.com/ws"/></input>
<output>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="http://xmlns.catch.com/ws"/></output>
<!-- Offending Code, remove and sproxy.exe works.-->
<fault name="WebServiceException">
<soap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="http://xmlns.catch.com/ws/"/></fault>
<!-- Offending Code End -->
<soap:operation soapAction=""/></operation>
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc"/></binding>
<service name="RemoteAccess">
<port name="RemoteAccessProviderPort" binding="tns:RemoteAccessProviderBinding">
<soap:address xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" location="http://localhost/ws"/></port></service></definitions>
|
|
|
|
|
i want to crystal reports in my code using c#,and i don't know if i can make it read from xml files,and how
|
|
|
|
|
I've had this problem for a while and I'm stumped. For almost 2 months now, MSDN Online library quite showing the TOC, instead just displaying "Unavailable". Looking at the HTC code, there's only two reasons this would happen. The first is just a file access problem, when it can't download the XML TOC file. The second is that the "Microsoft.XMLDOM" COM object can't be created. I'm pretty sure the second case is the problem.
I tried the obvious things: deleting relevent cookies and clearing the cache. Nothing. So I did some research on the MS KB and did what it told me: I uninstalled MSXML4 then used xmlinst.exe to unregister MSXML3. I then re-registered MSXML3 and reinstalled MSXML4. The WinSxS directory shows the MSXML4 SbS assembly, and I have MSXML[234]? in my system directory. The registry contains all the necessary ProgIDs that resolve correctly to the right CLSIDs, which reference the right libraries. Still no joy.
So, does anyone have any idea of what else I can try? I've googled for similar problems and only found one valid reference with no resolution. Being an avid poster in the C# forum and frequently reading the articles posted on MSDN, doing so without the TOC is next to impossible!
Any help would be greatly appreciated.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
I need to use a schema to know which elements/complex types a certain node can have as well as which attributes a node can and must have according to the schema.
I do not want to edit an xml & then validate it, i need to know which elements i can add & which not in any given time.
|
|
|
|
|
You just need an XML editor that understands schemas. VS.NET does an OK job, but frequently screws up with more complex schemas (like those contianing a lot of complexType s and attributeGroup s. XmlSpy[^] is a good editor, but it is a commercial editor. It's pretty nice, though. If you have to manually type a lot of XML or create a lot of schemas (personally, I'd rather type them with a vanilla text editor, but I'm just crazy like that), the price is definitely worth it.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
What i meant was that i need a control that i can place on my forms that will allow the user to edit an XML under the restiction of a Schema.
I currently use a data set to read the schema & i then insert the information the user types into a DataTable so i cant validate it agains the restrictions in the DataSet, however i would like to use the XML & Schema Objects in .NET to validate but i'm not clear on how to implement it.
|
|
|
|
|
If you want to validate the document or an XML fragment, see the System.Xml.XmlValidatingReader . There are several articles in the .NET Framework SDK that outline how to validate a document, include this one: Validation against XML Schema (XSD) with the XmlValidatingReader[^].
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
I don't know if this is the right place to ask but... here it goes:
Does anyone know some way to convert a XML document to a formatted Word document. I know I can use automation and some programming to do that, but I wonder if there is a better way to do that.
thanks in advance
Mauricio Ritter - Brazil
Sonorking now: 100.13560 MRitter
English is not my native language so, if you find any spelling erros in my posts, please let me know.
|
|
|
|
|
you could generate a RTF or HTML file and open it in word.
or you could generate a XML compatible format if using office 2003
"When the only tool you have is a hammer, a sore thumb you will have."
|
|
|
|
|
select Data tag from this XML file
<Root>
<Table>
<Row>
<Data>Value 1</Data>
</Row>
<Row>
<Data>Value 2</Data>
</Row>
</Table>
<Table>
<Row />
<Row>
<Data>Value 3</Data>
</Row>
</Table>
</Root>
I use "//Data" but no node selected, anyone can help me ?
"Courage choose who will follow, Fate choose who will lead" - Lord Gunner, Septerra Core
"Press any key to continue, where's the ANY key ?" - Homer Simpsons
Drinking gives me amazing powers of insight. I can solve all the worlds problems when drunk, but can never remember the solutions in the morning. - Michael P Butler to Paul Watson on 12/08/03
|
|
|
|
|
Try "Root/Table/Row/Data" .
-Nick Parker
VB gets under people's skin because one can be ignorant of computer architecture and ASM and still
get a lot done. -Don Box
|
|
|
|
|
Is there any different if the root tag has namespace ?
My Root tag has namespace xmlns="urn:www-domain-com:app:type"
Thanks you
"Courage choose who will follow, Fate choose who will lead" - Lord Gunner, Septerra Core
"Press any key to continue, where's the ANY key ?" - Homer Simpsons
Drinking gives me amazing powers of insight. I can solve all the worlds problems when drunk, but can never remember the solutions in the morning. - Michael P Butler to Paul Watson on 12/08/03
|
|
|
|
|
Yes, there is a difference. In order to use XPath when namespaces are used, you must somehow register the namespace and some prefix with the XPath processor (the registration mechanism will depend on the processor used), then use the prefix in the XPath expression.
For example, if you register the prefix 'blah' as 'urn:www-domain-com:app:type', then you could use the XPath expression '//blah:Data' to pick out all the 'Data' nodes if your XML file uses 'urn:www-domain-com:app:type' as a default namespace. Note that the XPath processor will not use any namespace prefixes used in the XML file, which is why a default namespace declaration can be confusing with XPath...
Stuart Dootson
'Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p'
|
|
|
|
|
I don't know if this is the place to ask general questions about web services, but this forum seemed the most appropriate. I havn't had much experience with web technologies so what I hope for is a "push in the right direction"...
What I would like to do is expose a fairly complex framework as a set of webservices. The individual services may take a long time (up to an hour) to complete, so asyncronous calls will probably be used. The output of one service is often input to another, so I'd eventually like to use some kind of server process control. The server will be on a UNIX station and I'll probably implement it in Java.
I've looked at some different technologies this week, and this is what I've come up with:
- The transport will probably be SMTP. I've looked at protocols like BEEP and JMS, but it seems easier(?) to use ordinary mail.
- The service invocations will probably use SOAP generated by JAX-RPC (is there a standard SMTP binding for SOAP?). Possibly a special mail service (based on Apache James?) handles the requests and orchestrates them (handles the process control and invokes local or remote HTTP services).
- The responses will be sent as "notifications" over SMTP (something like a REQUEST<=>N*RESPONSE pattern)
- For process control the BPEL (Business Process Execution Language) seems promising. I've not read through the spec, though.
Did this make any sense? Are there better ways? Any comments, suggestions, experiences or links would really be appreciated at this stage so I don't lock myself in with a dead end technology...
Thanks
/moliate
The corners of my eyes catch hasty, bloodless motion -
a mouse?
Well, certainly a peripheral of some kind.
Neil Gaiman - Cold Colours
|
|
|
|
|
Hi,
I am working with a large set of documents written in XML. At the moment these documents are transformed into HTML by applying a simple XSLT to them with the xml-stylesheet tag. My XSL file is getting quite advanced now, and I would like to add some "go to location" functionality. So with html documentation you might just make a link which points at a page and within that a bookmark. eg:
file: Or i could do it with a with URL parameters :
file: But unfortunatly when I try and pass either bookmarks or parameters into my xml files, these extensions get eaten before the xsl ever gets to pick them up. So my xsl file starts off...
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxsl="urn:schemas-microsoft-com:xslt"
xmlns:url="uri:airwebreathe.org">
<msxsl:script language="JScript" implements-prefix="url">
<![CDATA[
function findURL(nodelist) {
return nodelist.nextNode().url;
}
]]>
</msxsl:script>
<xsl:variable name="xmlpath" select="url:findURL(.)" />
... Unfortunatly when I try somthing like <xsl:value-of select="$xmlpath"> All that does is return the path of the xml file with the parameters or bookmarks stripped away. Is there a way around this problem? or is this a job for client side asp (if there is such a thing)? can anyone put me right?
*¨¨`)
¸¸.·´ ¸.·*¨¨`)
(¸¸.·* ¸ .·*
¸¸.·*
(¸¸.~~> Joel Holdsworth.
|
|
|
|
|
what do you mean by:
"But unfortunatly when I try and pass either bookmarks or parameters into my xml files, these extensions get eaten before the xsl ever gets to pick them up."
how are you performing the transformation ,do you have code?
"When the only tool you have is a hammer, a sore thumb you will have."
|
|
|
|
|
I use a ISAXXMLReader to locate the line & column number of a IXMLDOMNode;
for that i use a ISAXLocator that is transmitted to the ContentHandler :
// create a reader & ContentHandler:
ISAXXMLReaderPtr pReader;
HRESULT hr = pReader.CreateInstance(__uuidof(SAXXMLReader40));
MyContentHandler *pMyContentHandler = new MyContentHandler();
hr = pReader->putContentHandler(pMc);
// create a ISAXLocator & put it to the ContentHandler :
ISAXLocatorPtr pLocator;
hr = pLocator.CreateInstance(__uuidof(ISAXLocator)); // -> hr = -2147221164
pMyContentHandler->putDocumentLocator(pLocator);
// pass a node to the parser :
_variant_t v;
v.vt = VT_DISPATCH;
v.pdispVal = pNode;
pNode->AddRef();
hr = pReader->parse(v);
The parser works (it directly goes to the specifed node),
but pLocator.CreateInstance fails (hr = -2147221164). What's wrong with it ?
JPG
|
|
|
|
|
In fact the code returned by pLocator.CreateInstance
is REGDB_E_CLASSNOTREG : the ISAXLocator is not registered.
Yet the ISAXXMLReader class is registered.
Indeed, looking in the registry, the uuid of ISAXXMLReader is found, but not
the uuid of ISAXLocator.
All these classes were normally installed with the MSXML 4.0 SP2 Parser and SDK
(msxml.msi) from Microsoft.
Does the ISAXLocator need a special trick to be registered ?
JPG
|
|
|
|
|
Hi all,
I have designed a file *.aspx contains a DBGrid control and a XML control. Both of them are server control.
I stored some data into XML tag and now want to show them on DBGrid. But DBGrid.DataSource property accept only DataSet, DataView, etc.
Please tell me how to translate data from XML into DBGrid.
Thank you
Trong Tuan
|
|
|
|
|
Does anyone have a need to transform DTD's (not schema) into C# classes and interfaces?
I had to work on a old (but important) set of DTD's recently and developed a pretty thorough program to handle this. If there is an interest, I will clean it up and get it out.
|
|
|
|