|
In which format you want the XML.
You need to first learn basic XML.You'll get the answer
Check the link
[^]">
Cheers!!
Brij
|
|
|
|
|
Thanks for repling.
I know basics of XML. In my post earlier Tags didnt come.
I want to cutomize the tags according to the requirement rather than getting the Tags for the default database.
|
|
|
|
|
You can change the format of XML from one to another using XSLT for that you need XSLT style sheet.
Check the link
Click[^]">
Cheers!!
Brij
|
|
|
|
|
What database are you using? If its SQL Server you can use the FORXML clause to format the resultset.
Also, why use .NET 1.1? It is very outdated, 2.0 is the minimum you should be working with.
only two letters away from being an asset
|
|
|
|
|
Hi,
I have one Merge Module (MSM) created using WISE which I want to use it in WIX.
When I created MSI using WIX which contains the above MSM and RUN the MSI then the Service EXE and the related DLL's are copied to my system Folder but the service is not Installed and started in my system.
But when I do the same steps mentioned above with WISE ( Created MSI which contains MSM) then the service is Installed and Started in my system.
Is there anything extra I need to do it in WIX in order to Install and Start the Service?
Thanks,
Narasimha.
|
|
|
|
|
Hi All,
I have to read in an xml or xsd document (XCCDF - The Extensible Configuration Checklist Description Format) and would like to create tables in the Database based on them (if they do not exist). I do NOT know what the Table names/Fields will be so I am looking to do it dynamically.
XCCDF is a specification language for writing security checklists, benchmarks, and related kinds of documents.
This is a view of the formt (xml):
<?xml version="1.0" encoding="utf-8"?>
<Benchmark id="MicrosoftSecurityComplianceManagementForWindows2008" resolved="0" xml:lang="en" xmlns="http://checklists.nist.gov/xccdf/1.1" xmlns:cdf="http://checklists.nist.gov/xccdf/1.1" xmlns:cpe="http://cpe.mitre.org/XMLSchema/cpe/1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" xsi:schemaLocation="http://checklists.nist.gov/xccdf/1.1 xccdf-1.1.xsd http://cpe.mitre.org/XMLSchema/cpe/1.0 cpe-1.0.xsd">
<status date="2008-05-16">draft</status>
<title>Microsoft Security Compliance Management for Windows Server 2008</title>
<description>Microsoft Security Compliance Management for Windows Server 2008</description>
<notice id="terms-of-use" xml:lang="en">
</notice>
<front-matter>
<xhtml:p>
</xhtml:p>
</front-matter>
<rear-matter>
</rear-matter>
<reference href="http://checklists.nist.gov/repository/1001.html">
<dc:title>Microsoft Security Compliance Management for Windows Server 2008</dc:title>
<dc:creator>Microsoft Solution Accelerator for Security and Compliance</dc:creator>
<dc:publisher>
</dc:publisher>
<dc:identifier>
</dc:identifier>
</reference>
...
...
Full info on these files can be found here[^]
So, any ideas how to do this dynamically?
Regards,
Dan
|
|
|
|
|
Dan Madden wrote: So, any ideas how to do this dynamically?
Could you be more specific. Your post seems to be asking for a complete solution rather than answers to specific questions. You have also not provided any development environment information.
led mike
|
|
|
|
|
How can I set an transparent background using HTML. Give me a example of code for that....
|
|
|
|
|
you can set a transparent on bodytag as background.But first make a transparent image for it.
Cheers!!
Brij
|
|
|
|
|
When catching an XmlSchemaValidationException, the debugger shows hidden members like ‘Res’ = ‘Sch_InvalidElementContentExpecting’ and string Args[] with the expected elements. I would like to access these hidden members so that I can create my own error message in my native language. Does anybody know how to retrieve this information? Code fragment: invoked after call to XmlDataDocument.Validate:
private void ValidationCallBack(Object sender, ValidationEventArgs args)
{
if (args.Exception.GetType() == typeof(XmlSchemaValidationException))
{
XmlSchemaValidationException ex = args.Exception as XmlSchemaValidationException;
textBoxValideer.Text += node.Name + " " + ex.Message + "\n";
}
else
{
textBoxValideer.Text += "\n?";
}
}
M.A
|
|
|
|
|
Hi,
I'm trying to figure out how to extract data from an ASP.NET generated table.
Here's an excerpt of the HTML:
<body>
...
<table cellspacing="1" cellpadding="3" border="0" id="ctl00_ContentPlaceHolderDroit_GridView1" style="border-width:0px;width:690px;">
...
<tr class="txt_general" style="background-color:#F4F4F4;"> // <--- Row that contains the data that is repeated
<td style="width:70px;" rowspan="1" colspan="1">
<img src="../Photo.ashx?id=1576120" style="height:58px;width:70px;border-width:0px;" /> // <-- I want to extract the photo ID
</td>
<td rowspan="1" colspan="1">
<span id="ctl00_ContentPlaceHolderDroit_GridView1_ctl02_lblPrice">87 000$</span> // I want to extract the price. The ID increments ct103_lblPrice would be the next row.
<br clear="none" />
</td>
</tr>
...
</table>
</body>
Can someone help me with this problem?
|
|
|
|
|
We are in the process of centralizing everything - data, apps, 3rd party imports, SSIS jobs, etc. Most of the home grown apps are going to need to be completely overhauled, and the 3rd party stuff and SSIS jobs can all use XML.
If you were going to use a development platform going forward to get things off the ground and you were starting from scratch, what would you use? We currently write everything in C# and rely heavily on AD for application permissions and access.
Any suggestions would be welcome. I was thinking that since we're moving to a bigger focus on BI and possibly moving to Sharepoint for a lot of our internal work, that Flex, Adobe Air, Laszlo Systems or some other XML RIS technology might be a good way to look.
All of this is internal, don't have to worry about being public.
Thanks!
|
|
|
|
|
This sounds frighteningly like someone just heard of XML for the first time and decided to use it everywhere.
Use visual studio to write your C# apps. XML, you can edit in any text editor.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Nope, it's someone who is trying to figure out where we should be in several years and trying to set the ground work now. We have a bunch of C# apps, a bunch of SSRS reports, and a LOT of sql data that needs to be manhandled into some state to allow our users to analyze it.
I figured since a lot of things can be translated somehow into XML so that would be a good medium.
Honestly, I'm in way over my head, and I'm looking for some direction.
|
|
|
|
|
|
I need to create an XML document with these values, then convert the xml to a xml schema.. How can i do this?
Ticket Number: IR123456
Application: about 15 applications we support ex. Solspark, NSS and so on
Date and Time:
Duration: 15 min 60 min or more
Missed SLA?: Yes/No
Repeat Problem: Yes/No
Impacted Program/Job: text
Customers Impacted: text
Incident Description: text
Root Cause: text
Resolution: text
|
|
|
|
|
Well, sounds like you need to read some very basic articles. Creating XML from this is trivial, it's just a case of deciding on a format ( use nodes or attributes, etc ). If you don't know how to do that, then you really shouldn't be messing with any XML until you do.
You can't really create a 100% accurate schema from one XML, you're better off creating it by hand.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I need to utilize a web service to send XML data. I have the XML file as a SOAP format and have converted to a string. I just need to be able to send this via the web service - sync or async - and check the response is ok. Can someone please guide me through this?
|
|
|
|
|
shalu madan wrote: I have this task in hand to utilize a web service to send XML data. I have the XML file as a SOAP format and have converted to a string. I just need to be able to send this via the web service - sync or async - and check the response is ok.
The technology you are intending to use for connecting and communicating to the Web Service has nothing to do with XML/XSL. You should find more relevant forum to ask your question. Also don't forget to actually ask a question, as you did not here. Also, it sound more like you should be looking for an example, sample or tutorial using the specific tools you intend on using. Perhaps you should do that rather than post another non-question in a forum.
led mike
|
|
|
|
|
Good Afternoon Guys , i have never attempted to save Data to the Database from the XML FILE, i have the Following
public static string SaveObjectToDB(object obj)
{
string sql = "", xml = "", result = "";
foreach (Attribute attr in obj.GetType().GetCustomAttributes(true))
{
DBStoredProcAttribute dbSPAttr = attr as DBStoredProcAttribute;
if (dbSPAttr != null)
{
xml = SerializeObjectToXML(obj);
xml = xml.Replace("\\r\\n", "").Replace("\r\n", "").Replace("<?xml version=\"1.0\" encoding=\"utf-16\"?>", "");
int StartPos=0;
StartPos = xml.IndexOf("<SubjectStructure>");
if (StartPos > 0)
{
xml = xml.Substring(StartPos);
}
sql = dbSPAttr.SaveObjectSP + "'" + xml.Trim() + "'";
result = ExecuteStoredProc(sql);
}
}
return result;
}
Can you please help Explain this Function code.If i can Directly save the data to the Database, why should i put it to XML First then SQL
Thanks
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
I don't understand. Are you asking what the code does? It sounds like you are asking why the person did it this way, there is no way we can know that.
led mike
|
|
|
|
|
hi Led
I meant , Am new to XML, i wanted to Know what are these Functions do like
Attribute attr in obj.GetType().GetCustomAttributes(true))
xml.Replace("\\r\\n", "").Replace("\r\n", "").Replace("<?xml version=\"1.0\" encoding=\"utf-16\"?>", "");
StartPos = xml.IndexOf("<SubjectStructure>");
sql = dbSPAttr.SaveObjectSP + "'" + xml.Trim() + "'";
Am reading a book, to famirialize myself with XML
Thank you
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
In my xsd file I have a bool element. I want to set a restriction so that it can only be set to true if a previous element is present and has a particular value.
Something like this
<xs:simpleType name="someEnum">
<xs:restriction base="xs:string">
<xs:enumeration value="Value1" />
<xs:enumeration value="Value2" />
</xs:restriction>
</xs:simpleType>
...
<xs:element name="Field1" type="someEnum" minOccurs="0" maxOccurs="1" />
<xs:element name="Field2" type="xs:boolean" minOccurs="0" maxOccurs="1" />
I want to change it so that Field2 can only be true if Field1 is Value2 from the enum
|
|
|
|
|
How to valitate Xml test suites? is there any tool for valitate them?
|
|
|
|
|
raveen wrote: How to valitate Xml test suites?
If you can't be bothered to provide specific relevant information why should we bother to help you?
led mike
|
|
|
|