|
Just change the pathname to point to the sub-folder. Anyway, what is the run-time context? Are you using ASP.NET, Windows Forms, console, etc.?
|
|
|
|
|
act i using ASP.NET Web form....
i use another method to solve my problem without copy file. but i hav another problem is how can i use xml to select my sql statement and get database from sql server to get data and display in my crystal report... what should i write in XML?? I no familiar with XML..
angela
|
|
|
|
|
One way is to create a typed dataset and use that as a data-source for the Crystal report document so you can format your output and any other required functions. In your program, using a DataAdapter, fill the dataset with data using a standard SQL statement. Now, you set up the Crystal Report Object to use your dataset data.
The above information is just a rough summary of how you can sucessfully use Crystal Reports. Search the Code Project or Business Object web sites for examples.
|
|
|
|
|
ok, thanks a lot for ur guideline;)
angela
|
|
|
|
|
I want to know how to use XML digital signatures for signing and verifying an XML document ?
chen
|
|
|
|
|
How do I write this XML doc to a string rather than a file?
Dim xmlr As System.Xml.XmlTextWriter
xmlr = New System.Xml.XmlTextWriter("C:\test.xml", Text.Encoding.UTF8)
' add elements, etc....
m_xmlr.Close()
|
|
|
|
|
How about "System.IO.StringWriter"
|
|
|
|
|
Hi All,
I have a xml and a xsl file all done...
the xsl file displays the names of my staff members and the names of the categories of the serviceses and the brands and the amount of each sold.
       StaffA  StaffB  StaffC  Total
CatA        9        8         7     24
CatB        8        2         0     10
CatC        0        2         0      2
Total      17       12        7     26
BrandA      7       6       2       15
BrandB      2       1       4         7
BrandC      2       1       2        5
Total       11       8       8       27
Now the problem is. I need to print this... BUT if there are more than say 5 Staff members, some of the info does't show up on the printed page. Is it possible to make the xsl and xml files create a table and if there are more than 5 staff members start a new table containing the rest of the staff members and their info.
Example:
       StaffA  StaffB  StaffC  StaffD  StaffE  Total
CatA        1       0         0        0        3         4
CatB        0       1         1        0        0         2
Total       1       1         1        0        3         6
BrandA     2       2        1          1        0         6
BrandB     1       1        1          3        1         7
Total       3       3        2          4        1         13
StaffF StaffG Total
CatA 0 8 8
CatB 2 2 4
Total 2 10 12
BrandA 1 2 3
BrandB 2 2 4
Total 3 4 7
|
|
|
|
|
Hi
I using xml schema to validate xml.
My xml is looking like this:
<some_name>
... some integer and string elements
<xmlData>
... random xml data, like : <a>asd</a><b>dsds</b>
</xmlData>
</some_name>
I have no problem with integer and string data, but I don't know to which type to set xmlData element.
xmlData can contain random xml which structure is unknown. I just want to know that xmlData element is presenting and have some elements
Any suggestions?
10x in advance.
|
|
|
|
|
I think the type is 'anyType'
Denevers
|
|
|
|
|
Hmm and how to use it?
I try this schema:
<?xml version="1.0" encoding="utf-8" ?>
<xs:schema id="MyID" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="Root">
<xs:complexType>
<xs:sequence>
<xs:element name="FirstElement" type="xs:string"/>
<xs:element name="XMLElement" type="xs:anyType" minOccurs="1" maxOccurs="1" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
for this xml:
<Root>
<FirstElement>sdsdd</FirstElement>
<XMLElement>1</XMLElement>
</Root>
and it works whenever XMLElement is string or integer, but if I add an element in XMLElement, like here:
<Root>
<FirstElement>dsds</FirstElement>
<XMLElement><a>sdsd</a></XMLElement>
</Root>
an error appear - The 'a' element is not declared. An error occurred at , (3, 15)
|
|
|
|
|
Sorry about this.. I just answered from the top of my head, which ended up being empty.
you must use xs:any and provide a processContents instruction, lax = will try to apply a schema, but won't complain if it does not find any. processContent = "skip" will tell the validator to skip validation.
<xs:element name="MyContainer">
<xs:complexType>
<xs:sequence>
<xs:element name="FirstElement" type="xs:string"/>
<xs:element name="XMLElement">
<xs:complexType>
<xs:sequence>
<xs:any namespace="##any" processContents="lax"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
see http://www.w3schools.com/schema/el_any.asp for details
Denevers
-- modified at 8:27 Monday 3rd April, 2006
|
|
|
|
|
That's what I need.
xs:any + processContents="skip" do the job
Thank You
|
|
|
|
|
you are most welcomed.
cheers
Denevers
|
|
|
|
|
Hey,
I am looking for recommendations for an Xml Editor that can be supported in a WinForm. Free or Commercial.
Thanks in advance!
Bill
|
|
|
|
|
I am new to XML world. I want to know is there any downloadable utility software (Not MSXML parser) using which I can check the validity of XML document against a XSD file. Also I want to know how I can do the same validation using VB.Net code.
Regards,
Krishnaraj
|
|
|
|
|
|
Can I wrap IXMLDOMDocumentPtr in the smart pointer CComQIPtr ? If Yes, what is the IID of IXMLDOMDocumentPtr ?
Thanks ...
---
With best regards,
A Manchester United Fan
The Genius of a true fool is that he can mess up a foolproof plan!
|
|
|
|
|
hi there,
i have a dataset which xml data is loaded, i have performed several operations can i rollback the change done toit set by step??.
thanks in advance
bharath.s
|
|
|
|
|
Since a dataset is involved, I guess you can create transactions to perform the operations. If one operation fails, you can roll back the transaction.
Hope this helps..
---
With best regards,
A Manchester United Fan
The Genius of a true fool is that he can mess up a foolproof plan!
|
|
|
|
|
I am using XML and XSL to transform XML files into source code for different programming languages.
But in C literals are WRITTEN_UPPERCASE_WITH_UNDERSCORES while C# programmers like MixedCaseWithNoUnderscore.
It's easy to convert "Quick Brown Fox" to "QUICK_BROWN_FOX" and "QuickBrownFox", but how about "QuickBrownFox" to "QUICK_BROWN_FOX"?
Or the other way round, "QUICK_BROWN_FOX" to "QuickBrownFox"?
Thanks in advance
Andre
|
|
|
|
|
Hello, I am quite new on this site, so I do not know what kind of answers are expected.
I expect that you want to transform these in the XSL.
I have created, quickly and untestedly - two templates that you should be able to call that will do what you want. You call one of them with a parameter containing the string that you want transformed.
I hope this helps
Regards,
Ragulf Pickaxe
<!-- Global variables -->
<xsl:variable name="Upper" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'"/>
<xsl:variable name="Lower" select="'abcdefghijklmnopqrstuvwxyz'"/>
<xsl:variable name="Marker" select="'**************************'"/>
<xsl:template name="c-lit-to-c-sharp-lit">
<xsl:param name="c-lit" select="''"/>
<xsl:if test="$c-lit!=''">
<xsl:value-of select="sustring($c-lit,1,1)"/>
<xsl:value-of select="translate(substring-before($c-lit,'_'),$Upper,$Lower)"/>
<xsl:call-template name="c-lit-to-c-sharp-lit">
<xsl:with-param name="c-lit" select="substring-after($c-lit)"/>
</xsl:call-temaplate>
</xsl:if>
</xsl:template>
<xsl:template name="c-sharp-lit-to-c-lit">
<xsl:param name="c-sharp-lit" select="''"/>
<xsl:if test="$c-sharp-lit!=''">
<xsl:variable name="marked-c-sharp-lit" select="translate($c-sharp-lit,$Upper,$Marker)"/>
<xsl:value-of select="sustring($c-sharp-lit,1,1)"/>
<xsl:value-of select="translate(substring-before($marked-c-sharp-lit,'*'),$Lower,$Upper)"/>
<xsl:call-template name="c-sharp-lit-to-c-lit">
<xsl:with-param name="c-sharp-lit" select="substring($c-sharp-lit,string-length(substring-before($marked-c-sharp-lit,'*')),1 div 0)"/>
</xsl:call-template>
</xsl:if>
</xsl:template>
|
|
|
|
|
Hey, I am creating an application, and need some help.
It uses an XML file to keep tabs on documents created with it, and when the user presses a button i want to update that document's status in the XML file to "Finished".
So far i have XML files similar to the following:
http://pastebin.com/600756[^]
I need to modify the <status> tag of a specific report based on its ID, how would i go about doing this?
I would appreciate any help you can give me
James
|
|
|
|
|
i am final year student doing a project in XML and just want solution to the querie posted by you
kindly respond
remya
|
|
|
|
|
Hi
I developed an application using VB.NET with VS 2005.
I add xml comments as needed to every method/class/members etc.
Now i want to create an help file based on this comments.
I found a convertion tool for C# (NDoc) but not for VB.NET.
I need a simple tool to create a MSDN like help file based on VB.NET xml coments.
Tnx
-- modified at 6:59 Sunday 12th March, 2006
|
|
|
|