|
1) create element takes an element name, not attributes as well xmldocument.createElement("value-of")
2) you need to create and associate a namespace for the document for xsl to the xsl uri
3) when you do 1) above, pass 2) as the second parameter
4) you need to call setattibute on the element create to add the select.
"When the only tool you have is a hammer, a sore thumb you will have."
|
|
|
|
|
Hello buddies,
Can you guid me thru sending a file to Webservice so it can save it somewhere on the server?
Thank you so much
- Den 2 fly
---
"Art happens when you least expect it."
|
|
|
|
|
If the file u r refering is in xml u can use xmlnode /
xmldocument else u can send as an array of bytes
and create the file on the server.
cool man
|
|
|
|
|
hi!
why does the code below not work -
IXMLDOMDocument * iXMLDoc;
VARIANT_BOOL bSuccess=false;
if (!PyArg_ParseTuple(args, "s", &command))
return NULL;
// specify xml file name
//iXMLDoc->loadXML(command);
iXMLDoc->loadXML(command,&bSuccess);
the error i get is
C:\hons\pocketpc\testXML2\testXML2.c(12) : error C2065: 'false' : undeclared identifier
C:\hons\pocketpc\testXML2\testXML2.c(20) : error C2039: 'IXMLDOMDocument_loadXML' : is not a member of 'IXMLDOMDocument'
C:\Windows CE Tools\wce300\Pocket PC 2002\include\msxml.h(2230) : see declaration of 'IXMLDOMDocument'
thanks
cheers
|
|
|
|
|
I think you should try using VARIANT_FALSE instead of just "false", and I believe to load an XML document you should use "load" instead of "loadXML".
Dave
"You can say that again." -- Dept. of Redundancy Dept.
|
|
|
|
|
I am making XML comments with the Build Comment Web Pages tool is VS Studio .NET 2003. When a <see cref="xxx"> tag is used it appears in the HTML created by the tool in the xxx.html file but is not rendered by my IE6 browser.|
Any clues? ...
Gary Hyslop
|
|
|
|
|
Post a small demonstration of the output and I'll look at it.
--
Aaron Eldreth
|
|
|
|
|
The following is an exerpt of the HTML produced by the "Build Comment Web Pages" tool in VS Studio.NET 2003:
<title>ZedGraph.CurveItem
...
This class contains the data and methods for an individual curve within
a graph pane. It carries the settings for the curve including the
key and item names, colors, symbols and sizes, linetypes, etc.
The array of independent (X Axis) values that define this
<see cref="CurveItem">.
The size of this array determines the number of points that are
plotted. Note that values defined as
System.Double.MaxValue are considered "missing" values,
and are not plotted. The curve will have a break at these points
to indicate values are missing.
When I display this HTML with my IE6 browser the "<see cref="CurveItem">" tag is not rendered.
Thanks for your help
Gary Hyslop
|
|
|
|
|
I want to create a XSLT file in C#.NET manually.I mean that according to the user choice ,XSLT file will be created in background.But I know that there is not any class like XmlDocument,XmlTextWriter,XmlTextTeader for XSLT Document.How can I create this document?Should I use to File I/O class and how?I am waiting for your help...Thanks a lot...
|
|
|
|
|
an XSLT file is just a normal xml file in a different namespace (http://www.w3.org/1999/XSL/Transform) so you can use any of the Xml classes to create it
"When the only tool you have is a hammer, a sore thumb you will have."
|
|
|
|
|
What is the difference between <xsl:include> and <xsl:import>?
|
|
|
|
|
|
I have the following xml:
<configuration>
<configObj>
<name>aaa</name>
<value>1234</value>
</configObj>
<configObj>
<name>bbb</name>
<value>5678</value>
</configObj>
</configuration>
I know the expression to get all the values, but I need to get for example the value for name aaa, is there an Expression string to do this?
Thanks in advance!
Cristina
|
|
|
|
|
This should do the job:
/configuration/configObj[name='aaa']/value
Select the correct configObj with the predicate name='aaa' , then select the child element you want.
HTH.
Stuart Dootson
'Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p'
|
|
|
|
|
I have a problem about my Project.I want to ask about that.I am trying to build an application that you can transform a xml document into another xml document with drag-drop elements of the source xml document into the elements of the target xml document.Stylus Studio Editor has this kind of property called XSLT Mapper.When you drag an element into target element xsl source code is created below side of the window.I want to develop this kind of application.
But I could not have found what i should do.Could you help about this application?How should I develop this program and which properties of .NET I should use?
Thanks for a lot...
|
|
|
|
|
can marquee tag used in html can also be used in WML? or in XML??? or any other tags can be used for instead????
|
|
|
|
|
The Marquee tag can be used in XML, however, it does not scroll the contents like the marquee tag in HTML. Remember that XML only holds data, it is up to the application to determine how to read/display it.
--
Aaron Eldreth
|
|
|
|
|
I am using DOM parser to read an XML file but i am unable to read the XML file when it is in indented form.
Using the javax.xml.transform.Transformer i can write the XML file in indented form but can't read it in indented form.please tell me where i m lacking.
sangi2007
|
|
|
|
|
Hi
Can anyone tell me
HOW CAN I SAVE A PICTURE FILE OR PICTUREBOX.IMAGE IN XML FILE IN VB.NET?
i must save my form and all it's component in XML format and then again create my form by using my xml file. how can i do this and save image in picturebox on my form?
Best Regards
M.Khayatan
MkhProgrammer
|
|
|
|
|
Save it as a base64 encoded string.
Ryan
Ryan.
It's yet another shock to our system to discover that not only are we not the centre of the Universe and we're not made of anything, but we started out as some kind of slime and got to where we are via being a monkey. It just doesn't read well.
Douglas Adams
|
|
|
|
|
Hi,
that is nasty. IMHO you should only refer to picture file in XML instead of inserting binary file into XML, since it is text format.
Never forget: "Stay kul and happy" (I.A.)
|
|
|
|
|
Hello,
I am trying to read a XML file which has japanese characters -- The XMPL processor I am using is LIBXML2.
The XML file I am trying to read is as follows:
<><<response result="failure" loglevel="5" cname="recognizeversion" csever="10.5" addn="abc" focusbrowser="true" iid="1480" cse="SolidWorks" ver="10.5">><<info>><<reason>>ãƒãƒ¼ã‚¸ãƒ§ãƒ³èªè˜ã¯ãƒ¦ãƒ¼ã‚¶ã«ã‚ˆã£ã¦ãƒãƒ£ãƒ³ã‚»ãƒ«ã•ã‚Œã¾ã—ãŸ<><><>
Note, that the junk characters above are the japanese characters. If I save this file and open in IE then the characters are displayed in Japanese.
I using the following code to read the japanese character as contained in the <response>.<info>.<reason> section.
xmlChar * xmlStr = xmlNodeListGetString(doc, cur->xmlChildrenNode, 1);
CString xx = xmlStr;
AfxMessageBox(xx);
The above messagebox shows junk characters. I want it to display it as is visible in the IE.
Where am I doing the things wrong.
Thanks in advance.
Regards,
Amol
|
|
|
|
|
- Are you using a Unicode build? If not, CString will interpret xmlStr as ASCII characters, resulting in what you've got there.
- Even if you've got a Unicode build...you're not telling anything that xmlStr is UTF-8...
You can verify that libxml is reading the characters correctly by using xmllint (it converts the Japanese characters to numeric entities) and looking up the character codes in charmap.
In order to convert the UTF-8 that libxml gives you to (say) UTF-16, you can use code like this:
<br />
const int WIDE_COUNT = 1024;<br />
wchar_t wide[WIDE_COUNT] = {0};<br />
int inLen = lstrlenA(LPCSTR(xmlStr));<br />
int outLen = WIDE_COUNT;<br />
xmlCharEncodingHandlerPtr handler = xmlGetCharEncodingHandler(XML_CHAR_ENCODING_UTF16LE);<br />
int nOut = handler->output((xmlChar*)wide, &outLen, xmlStr, &inLen);<br />
This puts the same UTF-16 values in the string wide that xmllint displays as numerical entities.
As to displaying the characters in a message box - I'm afraid I don't know - it'll be character sets again, or fonts, though!!!
HTH
Stuart Dootson
'Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p'
|
|
|
|
|
Can somebody help me on the article http://www.codeproject.com/miscctrl/cntGroup.asp.
Sample?
Regards,
Rainer
|
|
|
|
|
Hie...
I have a login page using XML to store my UserEmail and UserPass.
Now, I want to verify with the XML, if user type a correct UserEmail and UserPass, then login proceed; if not, message text: This is an invalid Account.
Please help?
Thanks.
|
|
|
|