Validating XML files and generating error codes

I want to validate an XML file with a schema & also get hold of the fields/attributes/tags
that caused an error and generate error codes based on that. Any suggestion on
how this can be done. DOM, SAX allow to do validation but how do I know exactly
know which tags caused errors. We have to track the errors codes.

"SP" <[email protected]> wrote:
Use the HandlerBase class for getting hold of the tags and its attributes.
The methods in this class take the tags and attributes and throw the
SAXException. You can use these methods to find out which tag is throwing
an
exception.
Hope this helps
SP
I am using the DOMParser.parse method with the xerces parser. I have an error
handler registered to get hold of the errros. What happens is the parsing stops
at the first instance of an error. I want to continue parsing to get hold of all
errors. How can I achieve that?
>
"leena" <[email protected]> wrote in message
news:[email protected]..
I want to validate an XML file with a schema & also get hold of thefields/attributes/tags
that caused an error and generate error codes based on that. Anysuggestion on
how this can be done. DOM, SAX allow to do validation but how do Iknow
exactly
know which tags caused errors. We have to track the errors codes.

Similar Messages

  • REST API: Create Deployment throwing error BadRequest (The specified configuration settings for Settings are invalid. Verify that the service configuration file is a valid XML file, and that role instance counts are specified as positive integers.)

    Hi All,
    We are trying to access the Create Deployment method stated below
    http://msdn.microsoft.com/en-us/library/windowsazure/ee460813
    We have uploaded the Package in the blob and browsing the configuration file. We have checked trying to upload manually the package and config file in Azure portal and its working
    fine.
    Below is the code we have written for creating deployment where "AzureEcoystemCloudService" is our cloud service name where we want to deploy our package. I have also highlighted the XML creation
    part.
    byte[] bytes =
    new byte[fupldConfig.PostedFile.ContentLength + 1];
                fupldConfig.PostedFile.InputStream.Read(bytes, 0, bytes.Length);
    string a = Encoding.UTF8.GetString(bytes, 0, bytes.Length);
    string base64ConfigurationFile = a.ToBase64();
    X509Certificate2 certificate =
    CertificateUtility.GetStoreCertificate(ConfigurationManager.AppSettings["thumbprint"].ToString());
    HostedService.CreateNewDeployment(certificate,
    ConfigurationManager.AppSettings["SubscriptionId"].ToString(),
    "2012-03-01", "AzureEcoystemCloudService", Infosys.AzureEcosystem.Entities.Enums.DeploymentSlot.staging,
    "AzureEcoystemDeployment",
    "http://shubhendustorage.blob.core.windows.net/shubhendustorage/Infosys.AzureEcoystem.Web.cspkg",
    "AzureEcoystemDeployment", base64ConfigurationFile,
    true, false);   
    <summary>
    /// </summary>
    /// <param name="certificate"></param>
    /// <param name="subscriptionId"></param>
    /// <param name="version"></param>
    /// <param name="serviceName"></param>
    /// <param name="deploymentSlot"></param>
    /// <param name="name"></param>
    /// <param name="packageUrl"></param>
    /// <param name="label"></param>
    /// <param name="base64Configuration"></param>
    /// <param name="startDeployment"></param>
    /// <param name="treatWarningsAsError"></param>
    public static
    void CreateNewDeployment(X509Certificate2 certificate,
    string subscriptionId,
    string version, string serviceName, Infosys.AzureEcosystem.Entities.Enums.DeploymentSlot deploymentSlot,
    string name, string packageUrl,
    string label, string base64Configuration,
    bool startDeployment, bool treatWarningsAsError)
    Uri uri = new
    Uri(String.Format(Constants.CreateDeploymentUrlTemplate, subscriptionId, serviceName, deploymentSlot.ToString()));
    XNamespace wa = Constants.xmlNamespace;
    XDocument requestBody =
    new XDocument();
    String base64ConfigurationFile = base64Configuration;
    String base64Label = label.ToBase64();
    XElement xName = new
    XElement(wa + "Name", name);
    XElement xPackageUrl =
    new XElement(wa +
    "PackageUrl", packageUrl);
    XElement xLabel = new
    XElement(wa + "Label", base64Label);
    XElement xConfiguration =
    new XElement(wa +
    "Configuration", base64ConfigurationFile);
    XElement xStartDeployment =
    new XElement(wa +
    "StartDeployment", startDeployment.ToString().ToLower());
    XElement xTreatWarningsAsError =
    new XElement(wa +
    "TreatWarningsAsError", treatWarningsAsError.ToString().ToLower());
    XElement createDeployment =
    new XElement(wa +
    "CreateDeployment");
                createDeployment.Add(xName);
                createDeployment.Add(xPackageUrl);
                createDeployment.Add(xLabel);
                createDeployment.Add(xConfiguration);
                createDeployment.Add(xStartDeployment);
                createDeployment.Add(xTreatWarningsAsError);
                requestBody.Add(createDeployment);
                requestBody.Declaration =
    new XDeclaration("1.0",
    "UTF-8", "no");
    XDocument responseBody;
    RestApiUtility.InvokeRequest(
                    uri, Infosys.AzureEcosystem.Entities.Enums.RequestMethod.POST.ToString(),
    HttpStatusCode.Accepted, requestBody, certificate, version,
    out responseBody);
    <summary>
    /// A helper function to invoke a Service Management REST API operation.
    /// Throws an ApplicationException on unexpected status code results.
    /// </summary>
    /// <param name="uri">The URI of the operation to invoke using a web request.</param>
    /// <param name="method">The method of the web request, GET, PUT, POST, or DELETE.</param>
    /// <param name="expectedCode">The expected status code.</param>
    /// <param name="requestBody">The XML body to send with the web request. Use null to send no request body.</param>
    /// <param name="responseBody">The XML body returned by the request, if any.</param>
    /// <returns>The requestId returned by the operation.</returns>
    public static
    string InvokeRequest(
    Uri uri,
    string method,
    HttpStatusCode expectedCode,
    XDocument requestBody,
    X509Certificate2 certificate,
    string version,
    out XDocument responseBody)
                responseBody =
    null;
    string requestId = String.Empty;
    HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(uri);
                request.Method = method;
                request.Headers.Add("x-ms-Version", version);
                request.ClientCertificates.Add(certificate);
                request.ContentType =
    "application/xml";
    if (requestBody != null)
    using (Stream requestStream = request.GetRequestStream())
    using (StreamWriter streamWriter =
    new StreamWriter(
                            requestStream, System.Text.UTF8Encoding.UTF8))
                            requestBody.Save(streamWriter,
    SaveOptions.DisableFormatting);
    HttpWebResponse response;
    HttpStatusCode statusCode =
    HttpStatusCode.Unused;
    try
    response = (HttpWebResponse)request.GetResponse();
    catch (WebException ex)
    // GetResponse throws a WebException for 4XX and 5XX status codes
                    response = (HttpWebResponse)ex.Response;
    try
                    statusCode = response.StatusCode;
    if (response.ContentLength > 0)
    using (XmlReader reader =
    XmlReader.Create(response.GetResponseStream()))
                            responseBody =
    XDocument.Load(reader);
    if (response.Headers !=
    null)
                        requestId = response.Headers["x-ms-request-id"];
    finally
                    response.Close();
    if (!statusCode.Equals(expectedCode))
    throw new
    ApplicationException(string.Format(
    "Call to {0} returned an error:{1}Status Code: {2} ({3}):{1}{4}",
                        uri.ToString(),
    Environment.NewLine,
                        (int)statusCode,
                        statusCode,
                        responseBody.ToString(SaveOptions.OmitDuplicateNamespaces)));
    return requestId;
    But every time we are getting the below error from the line
     response = (HttpWebResponse)request.GetResponse();
    <Error xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
      <Code>BadRequest</Code>
      <Message>The specified configuration settings for Settings are invalid. Verify that the service configuration file is a valid XML file, and that role instance counts are specified as positive integers.</Message>
    </Error>
     Any help is appreciated.
    Thanks,
    Shubhendu

    Please find the request XML I have found it in debug mode
    <CreateDeployment xmlns="http://schemas.microsoft.com/windowsazure">
      <Name>742d0a5e-2a5d-4bd0-b4ac-dc9fa0d69610</Name>
      <PackageUrl>http://shubhendustorage.blob.core.windows.net/shubhendustorage/WindowsAzure1.cspkg</PackageUrl>
      <Label>QXp1cmVFY295c3RlbURlcGxveW1lbnQ=</Label>
      <Configuration>77u/PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0NCiAgKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKg0KDQogIFRoaXMgZmlsZSB3YXMgZ2VuZXJhdGVkIGJ5IGEgdG9vbCBmcm9tIHRoZSBwcm9qZWN0IGZpbGU6IFNlcnZpY2VDb25maWd1cmF0aW9uLkNsb3VkLmNzY2ZnDQoNCiAgQ2hhbmdlcyB0byB0aGlzIGZpbGUgbWF5IGNhdXNlIGluY29ycmVjdCBiZWhhdmlvciBhbmQgd2lsbCBiZSBsb3N0IGlmIHRoZSBmaWxlIGlzIHJlZ2VuZXJhdGVkLg0KDQogICoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioNCi0tPg0KPFNlcnZpY2VDb25maWd1cmF0aW9uIHNlcnZpY2VOYW1lPSJXaW5kb3dzQXp1cmUxIiB4bWxucz0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9TZXJ2aWNlSG9zdGluZy8yMDA4LzEwL1NlcnZpY2VDb25maWd1cmF0aW9uIiBvc0ZhbWlseT0iMSIgb3NWZXJzaW9uPSIqIiBzY2hlbWFWZXJzaW9uPSIyMDEyLTA1LjEuNyI+DQogIDxSb2xlIG5hbWU9IldlYlJvbGUxIj4NCiAgICA8SW5zdGFuY2VzIGNvdW50PSIyIiAvPg0KICAgIDxDb25maWd1cmF0aW9uU2V0dGluZ3M+DQogICAgICA8U2V0dGluZyBuYW1lPSJNaWNyb3NvZnQuV2luZG93c0F6dXJlLlBsdWdpbnMuRGlhZ25vc3RpY3MuQ29ubmVjdGlvblN0cmluZyIgdmFsdWU9IkRlZmF1bHRFbmRwb2ludHNQcm90b2NvbD1odHRwcztBY2NvdW50TmFtZT1zaHViaGVuZHVzdG9yYWdlO0FjY291bnRLZXk9WHIzZ3o2aUxFSkdMRHJBd1dTV3VIaUt3UklXbkFrYWo0MkFEcU5saGRKTTJwUnhnSzl4TWZEcTQ1ZHI3aDJXWUYvYUxObENnZ0FiZnhONWVBZ2lTWGc9PSIgLz4NCiAgICA8L0NvbmZpZ3VyYXRpb25TZXR0aW5ncz4NCiAgPC9Sb2xlPg0KPC9TZXJ2aWNlQ29uZmlndXJhdGlvbj4=</Configuration>
      <StartDeployment>true</StartDeployment>
      <TreatWarningsAsError>false</TreatWarningsAsError>
    </CreateDeployment>
    Shubhendu G

  • After re-inistalling windows 7 ultimate the validation process fails and reports error code 0xC004E003

    Hi I have just reinstalled Win 7 Ultimate and the validation has failed due to error code 0xC004E003.  all of the windows updates have been complete.
    when I run slui 4 and I do not get an option to activate by phone and I have tried running the Command prompt "cscript %windir%\System32\slmgr.vbs /ilc %windir%\System32\licensing\ppdlic\Security-Licensing-SLC-ppdlic.xrm-ms"  which errored
    out
    Bellow is the MGADiag tool output
    Diagnostic Report (1.9.0027.0):
    Windows Validation Data-->
    Validation Code: 0
    Cached Online Validation Code: 0x0
    Windows Product Key: *****-*****-X92GV-V7DCV-P4K27
    Windows Product Key Hash: aU2z1/fnhnLHmhBm699qYZT2E6s=
    Windows Product ID: 00426-OEM-8992662-00400
    Windows Product ID Type: 2
    Windows License Type: OEM SLP
    Windows OS version: 6.1.7601.2.00010100.1.0.001
    ID: {58492533-DAC0-4F4B-8CB4-7C2572CD6AD2}(3)
    Is Admin: Yes
    TestCab: 0x0
    LegitcheckControl ActiveX: N/A, hr = 0x80070002
    Signed By: N/A, hr = 0x80070002
    Product Name: Windows 7 Ultimate
    Architecture: 0x00000009
    Build lab: 7601.win7sp1_gdr.130828-1532
    TTS Error:
    Validation Diagnostic:
    Resolution Status: N/A
    Vista WgaER Data-->
    ThreatID(s): N/A, hr = 0x80070002
    Version: N/A, hr = 0x80070002
    Windows XP Notifications Data-->
    Cached Result: N/A, hr = 0x80070002
    File Exists: No
    Version: N/A, hr = 0x80070002
    WgaTray.exe Signed By: N/A, hr = 0x80070002
    WgaLogon.dll Signed By: N/A, hr = 0x80070002
    OGA Notifications Data-->
    Cached Result: N/A, hr = 0x80070002
    Version: N/A, hr = 0x80070002
    OGAExec.exe Signed By: N/A, hr = 0x80070002
    OGAAddin.dll Signed By: N/A, hr = 0x80070002
    OGA Data-->
    Office Status: 109 N/A
    OGA Version: N/A, 0x80070002
    Signed By: N/A, hr = 0x80070002
    Office Diagnostics: 025D1FF3-364-80041010_025D1FF3-229-80041010_025D1FF3-230-1_025D1FF3-517-80040154_025D1FF3-237-80040154_025D1FF3-238-2_025D1FF3-244-80070002_025D1FF3-258-3
    Browser Data-->
    Proxy settings: N/A
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Win32)
    Default Browser: C:\Program Files (x86)\Mozilla Firefox\firefox.exe
    Download signed ActiveX controls: Prompt
    Download unsigned ActiveX controls: Disabled
    Run ActiveX controls and plug-ins: Allowed
    Initialize and script ActiveX controls not marked as safe: Disabled
    Allow scripting of Internet Explorer Webbrowser control: Disabled
    Active scripting: Allowed
    Script ActiveX controls marked as safe for scripting: Allowed
    File Scan Data-->
    Other data-->
    Office Details: <GenuineResults><MachineData><UGUID>{58492533-DAC0-4F4B-8CB4-7C2572CD6AD2}</UGUID><Version>1.9.0027.0</Version><OS>6.1.7601.2.00010100.1.0.001</OS><Architecture>x64</Architecture><PKey>*****-*****-*****-*****-P4K27</PKey><PID>00426-OEM-8992662-00400</PID><PIDType>2</PIDType><SID>S-1-5-21-3905371182-2698555194-554347162</SID><SYSTEM><Manufacturer>Dell
    Inc.</Manufacturer><Model>Latitude E6520</Model></SYSTEM><BIOS><Manufacturer>Dell Inc.</Manufacturer><Version>A18</Version><SMBIOSVersion major="2" minor="6"/><Date>20130628000000.000000+000</Date></BIOS><HWID>A05B3107018400FE</HWID><UserLCID>0809</UserLCID><SystemLCID>0409</SystemLCID><TimeZone>GMT
    Standard Time(GMT+00:00)</TimeZone><iJoin>0</iJoin><SBID><stat>3</stat><msppid></msppid><name></name><model></model></SBID><OEM><OEMID>DELL  </OEMID><OEMTableID>CBX3  
    </OEMTableID></OEM><GANotification/></MachineData><Software><Office><Result>109</Result><Products/><Applications/></Office></Software></GenuineResults>  
    Spsys.log Content: 0x80070002
    Licensing Data-->
    Software licensing service version: 6.1.7601.17514
    Name: Windows(R) 7, Ultimate edition
    Description: Windows Operating System - Windows(R) 7, OEM_SLP channel
    Activation ID: 7cfd4696-69a9-4af7-af36-ff3d12b6b6c8
    Application ID: 55c92734-d682-4d71-983e-d6ec3f16059f
    Extended PID: 00426-00178-926-600400-02-2057-7601.0000-0452014
    Installation ID: 015022194896715926564380852615762536846771772141316646
    Processor Certificate URL: http://go.microsoft.com/fwlink/?LinkID=88338
    Machine Certificate URL: http://go.microsoft.com/fwlink/?LinkID=88339
    Use License URL: http://go.microsoft.com/fwlink/?LinkID=88341
    Product Key Certificate URL: http://go.microsoft.com/fwlink/?LinkID=88340
    Partial Product Key: P4K27
    License Status: Initial grace period
    Time remaining: 37860 minute(s) (26 day(s))
    Remaining Windows rearm count: 3
    Trusted time: 14/02/2014 09:02:26
    Windows Activation Technologies-->
    HrOffline: 0x00000000
    HrOnline: 0x00000000
    HealthStatus: 0x0000000000000000
    Event Time Stamp: 2:14:2014 09:00
    ActiveX: Registered, Version: 7.1.7600.16395
    Admin Service: Registered, Version: 7.1.7600.16395
    HealthStatus Bitmask Output:
    HWID Data-->
    HWID Hash Current: NAAAAAEAAQABAAIAAAACAAAABAABAAEAHKLYsxuJLAK4jqbIhjvuI1YXxgem9B73it4ucw==
    OEM Activation 1.0 Data-->
    N/A
    OEM Activation 2.0 Data-->
    BIOS valid for OA 2.0: yes
    Windows marker version: 0x20001
    OEMID and OEMTableID Consistent: yes
    BIOS Information:
      ACPI Table Name    OEMID Value    OEMTableID Value
      APIC            DELL          CBX3   
      FACP            DELL          CBX3   
      HPET            A M I          PCHHPET
      BOOT            DELL          CBX3    
      MCFG            DELL          SNDYBRDG
      TCPA                    
      SSDT            DELLTP        TPM
      SSDT            DELLTP        TPM
      SSDT            DELLTP        TPM
      DMAR            INTEL         SNB
      SLIC            DELL          CBX3   
      SSDT            DELLTP        TPM

    Hi,
    The error code  0xC004E003 means that the Software Licensing Service reported that license evaluation failed.
    We may need to involve the phone activation center and check if they can resolve the issue:
    How to contact a Microsoft Product Activation Center by telephone
    http://support.microsoft.com/kb/950929/
    Meanwhile, you should post your question in the forum mentioned by Kamin of Ressik. They are the most knowledgeable about the topic.
    Hope it helps.
    Regards,
    Blair Deng
    Blair Deng
    TechNet Community Support

  • Loading xml file and parsing error in web start

    Hello,
    I load a xml file from jar file, but i have a error at parsing see :
    ClassLoader cl= this.getClass().getClassLoader();
    File file = new File(cl.getResource("paradise/test/maquette/parser/areas.xml").getFile());
    parseur.parse(new InputSource(new FileInputStream(file)), this);
    the file opening but at parseur.parse() i have a path error with :
    http:// . . . . \Paradise_client\paradise.jar!\paradise\test\maquette\parser\areas.xml , bad name of directories .....
    Can you help me ? please :-(

    I need to do a similar thing but in my case I don't know the structure of the xml file. I have 2 questions for this mapping. For an xml file like this:
    <?xml version="1.0"?>
    <catalog>
    <book id="bk101">
    <author>Gambardella, Matthew</author>
    <title>XML Developer's Guide</title>
    <genre>Computer</genre>
    <price>44.95</price>
    <publish_date>2000-10-01</publish_date>
    <publisher>Dummy Publisher Co.</publisher>
    <publisher_address>
    <city>London</city>
    <street>Heart St.</street>
    <no>23/5</no>
    </publisher_address>
    <description>An in-depth look at creating applications
    with XML.
    </description>
    </book>
    </catalog>
    If I'm right, I need to create a database named catalog and a table named book. But the problem comes out here: How can i store publisher_address? In a table or what? Other problem is, is there a difference between storing id attribute of the book and genre element of the book? I think they are just columns of the book table. But if I'm wrong what is the correct solution?

  • How to break up a huge XML file and generate serialized JSP pages

    I have a huge xml file, with about 100 <item> nodes.
    I want to process this xml file with pagination and generate jsp pages.
    For example:
    Display items from 0 to 9 on page 1 page1.jsp , 10 to 19 on page2.jsp, and so on...
    Is it possible to generate JSP pages like this?
    I have heard of Velocity but dont know if it will be the right technology for this kind of a job.

    Thank you for your reply, I looked at the display tag library and it looks pretty neat with a lot of features, I could definitely use it in a different situation.
    The xml file size is about 1.35 MB, and the size is unpredictable it could shrink or grow periodically depending on the number of items available.
    I was hoping to create a documentation style (static pages) of the xml feed instead of having 1 jsp with dynamic pages
    I was looking at Anakia : http://jakarta.apache.org/velocity/docs/anakia.html , may be it has features that enable me to create static pages but not very sure.
    I think for now, I will transform the xml with an xsl file and pass the page numbers as input parameters to the xsl file
    null

  • Read XML file and generate a XLS file?

    Hi Guys,
    How I can generate a XLS file with information in a XML file.
    I have a XML which received information from a form.
    To the user see the information inside a XML file, I created a report.cfm with the informations of the users.
    Now the user want which the information in the XML, generate a XLS file from a CFM file to download.
    How I will transformed this information in a XLS file?
    Thanks,
    Fabiano Magno Pechibella

    There is no need to re-invent the wheel. Raymond Camden has published code that converts information from a form to an Excel file. His method first converts information from a form to a query. But you can easily adapt it to your case. If you do not have direct access to the form, you will still be able to convert the XML data into the name-value pairs in the query.

  • Applying validation checks and generating error

    Hi All, I am new to Informatica project . I have a client requirement of loading the source data to prestage table after removing header and footer (storing to separate table) ,
    then load pre stage table to stage after validating few checks and after removal of all special characters and then after data updation load stage data to target table.
    Source File :H|RRS_LECS_001|2015-05-08|04:05:475|20150329|1|980100001|5005|20150329|1|303001002|2005|20150329|1|442101001|10005|20150329|1|440002099|300T|4|2000  There are few validation checks like :1. Sum of records must match to trailor record i.e. 42. Sum of Amount column must match with Trailor amount count i.e. 20003. Account in source file must be present in look up tableIf any of the validations failes then it will generate an error message after look up on Error table.  Error Look up Table  Error_Id , Description1 , Sum of records doesnt match to trailor record 2 , Sum of Amount column doesnt match with Trailor amount count3 , Account is not present in look up table Look_Up table for validation point 3  Account , Description
    980100001| Equity Account
    303001002| ACR Account
    442101001| SL Account  Queries : How to implement this flow. How can i validate all the scenario and then
    look up on error table and generate error code , if all validations pass the load data to stage table.Please help if anyone have worked on such scenario or any related links for such scenario.

    해­외­배­당­사­이­트  ≫∞≪ Up486ㆍCom ≫∞≪  해­외­스­포­츠­배­팅 해­외­배­당­사­이­트해­외­배­당­사­이­트  ≫∞≪ Up486ㆍCom ≫∞≪  해­외­스­포­츠­배­팅 해­외­배­당­사­이­트해­외­배­당­사­이­트  ≫∞≪ Up486ㆍCom ≫∞≪  해­외­스­포­츠­배­팅 해­외­배­당­사­이­트해­외­배­당­사­이­트  ≫∞≪ Up486ㆍCom ≫∞≪  해­외­스­포­츠­배­팅 해­외­배­당­사­이­트해­외­배­당­사­이­트  ≫∞≪ Up486ㆍCom ≫∞≪  해­외­스­포­츠­배­팅 해­외­배­당­사­이­트해­외­배­당­사­이­트  ≫∞≪ Up486ㆍCom ≫∞≪  해­외­스­포­츠­배­팅 해­외­배­당­사­이­트해­외­배­당­사­이­트  ≫∞≪ Up486ㆍCom ≫∞≪  해­외­스­포­츠­배­팅 해­외­배­당­사­이­트해­외­배­당­사­이­트  ≫∞≪ Up486ㆍCom ≫∞≪  해­외­스­포­츠­배­팅 해­외­배­당­사­이­트해­외­배­당­사­이­트  ≫∞≪ Up486ㆍCom ≫∞≪  해­외­스­포­츠­배­팅 해­외­배­당­사­이­트해­외­배­당­사­이­트  ≫∞≪ Up486ㆍCom ≫∞≪  해­외­스­포­츠­배­팅 해­외­배­당­사­이­트해­외­배­당­사­이­트  ≫∞≪ Up486ㆍCom ≫∞≪  해­외­스­포­츠­배­팅 해­외­배­당­사­이­트해­외­배­당­사­이­트  ≫∞≪ Up486ㆍCom ≫∞≪  해­외­스­포­츠­배­팅 해­외­배­당­사­이­트해­외­배­당­사­이­트  ≫∞≪ Up486ㆍCom ≫∞≪  해­외­스­포­츠­배­팅 해­외­배­당­사­이­트해­외­배­당­사­이­트  ≫∞≪ Up486ㆍCom ≫∞≪  해­외­스­포­츠­배­팅 해­외­배­당­사­이­트해­외­배­당­사­이­트  ≫∞≪ Up486ㆍCom ≫∞≪  해­외­스­포­츠­배­팅 해­외­배­당­사­이­트해­외­배­당­사­이­트  ≫∞≪ Up486ㆍCom ≫∞≪  해­외­스­포­츠­배­팅 해­외­배­당­사­이­트해­외­배­당­사­이­트  ≫∞≪ Up486ㆍCom ≫∞≪  해­외­스­포­츠­배­팅 해­외­배­당­사­이­트해­외­배­당­사­이­트  ≫∞≪ Up486ㆍCom ≫∞≪  해­외­스­포­츠­배­팅 해­외­배­당­사­이­트해­외­배­당­사­이­트  ≫∞≪ Up486ㆍCom ≫∞≪  해­외­스­포­츠­배­팅 해­외­배­당­사­이­트해­외­배­당­사­이­트  ≫∞≪ Up486ㆍCom ≫∞≪  해­외­스­포­츠­배­팅 해­외­배­당­사­이­트해­외­배­당­사­이­트  ≫∞≪ Up486ㆍCom ≫∞≪  해­외­스­포­츠­배­팅 해­외­배­당­사­이­트해­외­배­당­사­이­트  ≫∞≪ Up486ㆍCom ≫∞≪  해­외­스­포­츠­배­팅 해­외­배­당­사­이­트해­외­배­당­사­이­트  ≫∞≪ Up486ㆍCom ≫∞≪  해­외­스­포­츠­배­팅 해­외­배­당­사­이­트해­외­배­당­사­이­트  ≫∞≪ Up486ㆍCom ≫∞≪  해­외­스­포­츠­배­팅 해­외­배­당­사­이­트해­외­배­당­사­이­트  ≫∞≪ Up486ㆍCom ≫∞≪  해­외­스­포­츠­배­팅 해­외­배­당­사­이­트해­외­배­당­사­이­트  ≫∞≪ Up486ㆍCom ≫∞≪  해­외­스­포­츠­배­팅 해­외­배­당­사­이­트해­외­배­당­사­이­트  ≫∞≪ Up486ㆍCom ≫∞≪  해­외­스­포­츠­배­팅 해­외­배­당­사­이­트해­외­배­당­사­이­트  ≫∞≪ Up486ㆍCom ≫∞≪  해­외­스­포­츠­배­팅 해­외­배­당­사­이­트해­외­배­당­사­이­트  ≫∞≪ Up486ㆍCom ≫∞≪  해­외­스­포­츠­배­팅 해­외­배­당­사­이­트해­외­배­당­사­이­트  ≫∞≪ Up486ㆍCom ≫∞≪  해­외­스­포­츠­배­팅 해­외­배­당­사­이­트해­외­배­당­사­이­트  ≫∞≪ Up486ㆍCom ≫∞≪  해­외­스­포­츠­배­팅 해­외­배­당­사­이­트해­외­배­당­사­이­트  ≫∞≪ Up486ㆍCom ≫∞≪  해­외­스­포­츠­배­팅 해­외­배­당­사­이­트해­외­배­당­사­이­트  ≫∞≪ Up486ㆍCom ≫∞≪  해­외­스­포­츠­배­팅 해­외­배­당­사­이­트해­외­배­당­사­이­트  ≫∞≪ Up486ㆍCom ≫∞≪  해­외­스­포­츠­배­팅 해­외­배­당­사­이­트해­외­배­당­사­이­트  ≫∞≪ Up486ㆍCom ≫∞≪  해­외­스­포­츠­배­팅 해­외­배­당­사­이­트

  • XMLBeans, XML files, and CharConversionException

    Hi, I am using XMLBeans to read in an XML file. However, my XML file fails to parse. I get the following exception:
    java.io.CharConversionException: Characters larger than 4 bytes are not supported: byte 0x8f implies a length of more than 4 bytes
    I do not have any foreign characters in my XML file; the file is valid and well-formed. Consequently, I am completely puzzled as to why I am gettin this error. Any suggestions?
    I am also using WebLogic Server 8.1 SP3 on a Unix box.

    To answer my own question:
    After much debugging, I determined that and errant character was getting introduced at the beginning of the xml file that failed to parse. As a result of this errant charcter, it was no longer a valid XML file and hence failed to parse...
    How that character is getting there is another question, possibly outside the realm of this forum.
    Hope this helps someone.

  • XML Publisher question - Not generating a valid XML file

    I am working through an Oracle document that walks you through creating an XML Pub report. I am using HCM 8.9, Tools 8.49.15 and it has XML Pub installed and I have the Microsoft plug-in installed
    I have created a query and have downloaded an rtf template and now am on a page where you enter your data source and then click ‘Generate’ for the sample data file. I did it and it created ‘PERSONAL_DATA_PAY.XML’ which is created from a PS Query. However if I click on ‘PERSONAL_DATA_PAY.XML’ it generates a blocky text file that is not an XML file and I can’t go any further.
    Do you know why it’s not generating a valid XML file when I click on 'generate'?
    Thanks
    Allen H. Cunningham
    Data Base Administrator - Oracle/PeopleSoft
    Sonoma State University

    You mean to say that you create a new data source by specifying Data Source Type as 'PS Query' and Data Source ID as your query name, you are not able to generate a valid XML file (by clicking on Generate link).
    did you cross check your query by running it?
    On field change of Generate link, PeopleSoft uses PSXP_RPTDEFNMANAGER and PSXP_XMLGEN app packagaes and query objects to create the file
    It should work if you query is valid..

  • XML Publisher does not create a valid XML file when I try to 'generate '

    I am working through an Oracle document that walks you through creating an XML Pub report. I am using HCM 8.9, Tools 8.49.15 and it has XML Pub installed and I have the Microsoft plug-in installed
    I have created a query and have downloaded an rtf template and now am on a page where you enter your data source and then click ‘Generate’ for the sample data file. I did it and it created ‘PERSONAL_DATA_PAY.XML’ which is created from a PS Query. However if I click on ‘PERSONAL_DATA_PAY.XML’ it generates a blocky text file that is not an XML file and I can’t go any further.
    Do you know why it’s not generating a valid XML file when I click on 'generate'?
    Thanks
    Allen H. Cunningham
    Data Base Administrator - Oracle/PeopleSoft
    Sonoma State University

    On the right click on HD under video quality to filter it. 

  • Infopath 2013 SOAP Web Service Data Connection - Error: The file is not a valid XML file

    Here are the steps to replicate the issue I’m having when adding lists.asmx or any other SharePoint web service in InfoPath 2013. This web service opens fine in the browser from my desktop. My account is a farm administrator and is added to the
    web application’s User Policy.  I can use these services just fine using Nintex 2013 Workflow.
    Open InfoPath Designer 2013.
    Select Blank Form and click Design Form button.
    Click “Data” tab.
    Click “From Web Service” and select “From SOAP Web Service”
    Enter https://mysiteurl.com/_vti_bin/lists.asmx?WSDL for the web service definition.
    Click Next.
    Windows Security window pops up.
    Enter a credential. I tried both my account and the farm account. My account is a farm admin and is added to the web application’s User Policy with Full Control.
    Click OK. It prompts for credential multiple times.
    I get below this error messages: 
    Sorry, we couldn't open https://mysiteurl.com/_vti_bin/lists.asmx?WSDL
    InfoPath cannot find or cannot access the specified Web Service description.
    The file is not a valid XML file.
    Not enough storage is available to process this command.
    We have a project that is in need of these services using InfoPath so any help is greatly appreciated.

    Hi Brian_TX,
    For your issue, try to the following methods:
    Change your service binding in web.config to:binding="basicHttpBinding". It seems in VS it defaults to wsHttpBinding.
    Replace all instances of "parameters" from the web service wsdl with the name "parameter"
    There are some similar articles about the issue, you can have a look at them:
    http://www.infopathdev.com/forums/t/23239.aspx
    https://social.msdn.microsoft.com/Forums/office/en-US/621929c3-0335-40af-8332-5a0b430901ab/problems-with-infopath-web-service-connection?forum=sharepointcustomizationprevious
    https://social.msdn.microsoft.com/Forums/en-US/5fa5eca8-f8d7-4a2e-81ba-a3b4bdcfe5af/infopath-cannot-find-or-cannot-access-the-specified-web-service-description?forum=sharepointcustomizationlegacy
    Best Regards
    Lisa Chen
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]

  • Error  in validation.xml   file while deploying in server

    Hi friends,
    I am Venkataramana . I am doing one small structs application with Validation . as usual in XML file i wrote validations but when i am deploying in server it is showing error as
    SEVERE: Parse Error at line 2 column 17: Document is invalid: no grammar found.
    org.xml.sax.SAXParseException: Document is invalid: no grammar found.
         at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)
    and
    Jan 11, 2010 11:57:53 PM org.apache.commons.digester.Digester error
    SEVERE: Parse Error at line 2 column 17: Document root element "form-validation", must match DOCTYPE root "null".
    org.xml.sax.SAXParseException: Document root element "form-validation", must match DOCTYPE root "null".
    Kindly find the validation.xml file for your reference.
    <!DOCTYPE form-validation PUBLIC
    "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1.3//EN"
    "http://jakarta.apache.org/commons/dtds/validator_1_1_3.dtd">
    <form-validation>
    <formset>
    <form name="regFormForm">
    <field property="username"
    depends="required">
    <arg0 key="uname"/>
    </field>
    <field property="password"
    depends="required">
    <arg0 key="password"/>
    </field>
    </form>
    </formset>
    </form-validation>
    Please can any one help on this?

    I think your dtd entry - "http://jakarta.apache.org/commons/dtds/validator_1_1_3.dtd" is not compatible with your validation.jar file. If you have recently downloaded the these struts jar files then make sure this entry is matched with what they have provided in examples. Or download new set of jar files and copy the same doc-type tag as they have given in examples.

  • Increment values within XML document and generate new file

    Good day Gurus of the Java World,
    I have a XML file and would like to generate a 100 unique files of this one file.
    The tags that need to be unique are UniqueID (alpha numeric field), TranAmount (numeric filed) and RefNumber (alpha numeric field).
    The rest of the tags can remain as is.
    How do I go about doing this? Please assist.
    <Payment>
    <UniqueID>48a6bd92-19c8-11e2-a2ba-000000000000</UniqueID>
    <EffectiveDate>20121018</EffectiveDate>
    <TranCode>1000</TranCode>
    <TranAmount>000000000123456</TranAmount>
    <TranDate>20121018</TranDate>
    <TranTime>014532</TranTime>
    <Check></Check>
    <DrCrInd>CR</DrCrInd>
    <Name>ABC</Name>
    <BrCode>1234</BrCode>
    <RefNumber>SALARYWAGE</RefNumber>
    <AccNumber>123456789</AccNumber>
    <BackoutCount>0</BackoutCount>
    </Payment>

    1. Parse the document into a DOM.
    2. Modify the nodes which you said you wanted modified.
    3. Serialize the DOM to a new document.
    4. Repeat steps 2 and 3 as required.

  • Code to read xml file  and display that data using sax parser

    Hai
    My problem I have to read a xml file and display the contents of the file on console using sax parser.

    here you go

  • Reading XML file and skip certain elements/attributes??

    Hi folks!
    Suppose I have a XML file looking like this:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE dvds SYSTEM "DTDtest.dtd">
    <dvds>
    <dvd>
    <title>
    Aliens
    </title>
    <director>
    James Cameron
    </director>
    <format>
    1.85:1
    </format>
    </dvd>
    <dvd>
    <title>
    X-Men
    </title>
    <director>
    Bryan Singer
    </director>
    <format>
    2.35:1
    </format>
    </dvd>
    </dvds>
    In my Java application I want to read this XML file and print it on the screen (including all tags etc). So far, so good. BUT, if I want to skip certain elements, i.e. all information about the dvd 'X-Men', how am I supposed to do this? In other words, I would like my app to skip reading all information about X-Men and continue with the next <dvd>... </dvd> tag. Is this possible?
    My code so far is from the XML tutorial from Sun and it looks like this:
    import java.io.*;
    import org.xml.sax.*;
    import org.xml.sax.helpers.DefaultHandler;
    import javax.xml.parsers.SAXParserFactory;
    import javax.xml.parsers.ParserConfigurationException;
    import javax.xml.parsers.SAXParser;
    public class MyXML extends DefaultHandler
    public static void main(String argv[]) {
    if (argv.length != 1) {
    System.err.println("Usage: cmd filename");
    System.exit(1);
    // Use an instance of ourselves as the SAX event handler
    DefaultHandler handler = new MyXML();
    // Use the default (non-validating) parser
    SAXParserFactory factory = SAXParserFactory.newInstance();
    try {
    // Set up output stream
    out = new OutputStreamWriter(System.out, "UTF8");
    // Parse the input
    SAXParser saxParser = factory.newSAXParser();
    saxParser.parse( new File(argv[0]), handler);
    } catch (Throwable t) {
    t.printStackTrace();
    System.exit(0);
    static private Writer out;
    //===========================================================
    // SAX DocumentHandler methods
    //===========================================================
    public void startDocument()
    throws SAXException
    emit("<?xml version='1.0' encoding='UTF-8'?>");
    nl();
    public void endDocument()
    throws SAXException
    try {
    nl();
    out.flush();
    } catch (IOException e) {
    throw new SAXException("I/O error", e);
    * <p>This method prints the start elements including attr.
    * @param namespaceURI
    * @param lName
    * @param qName
    * @param attrs
    * @throws SAXException
    public void startElement(String namespaceURI,
    String lName, // local name
    String qName, // qualified name
    Attributes attrs)
    throws SAXException
    String eName = lName; // element name
    if ("".equals(eName)) eName = qName; // namespaceAware = false
    emit("<"+eName);
    if (attrs != null) {
    for (int i = 0; i < attrs.getLength(); i++) {
    String aName = attrs.getLocalName(i); // Attr name
    if ("".equals(aName)) aName = attrs.getQName(i);
    emit(" ");
    emit(aName+"=\""+attrs.getValue(i)+"\"");
    emit(">");
    public void endElement(String namespaceURI,
    String sName, // simple name
    String qName // qualified name
    throws SAXException
    emit("</"+qName+">");
    * <p>This method prints the data between 'tags'
    * @param buf
    * @param offset
    * @param len
    * @throws SAXException
    public void characters(char buf[], int offset, int len)
    throws SAXException
    String s = new String(buf, offset, len);
    emit(s);
    //===========================================================
    // Utility Methods ...
    //===========================================================
    // Wrap I/O exceptions in SAX exceptions, to
    // suit handler signature requirements
    private void emit(String s)
    throws SAXException
    try {
    out.write(s);
    out.flush();
    } catch (IOException e) {
    throw new SAXException("I/O error", e);
    // Start a new line
    private void nl()
    throws SAXException
    String lineEnd = System.getProperty("line.separator");
    try {
    out.write(lineEnd);
    } catch (IOException e) {
    throw new SAXException("I/O error", e);
    Sorry about the long listing... :)
    Best regards
    /Paul

    A possibility that comes to mind is to create an XSLT script to do whatever it is you want - and call it from inside the program. The XSLT script can be stashed inside your .jar file by using getClass().getClassLoader().getResource("...")
    - David

Maybe you are looking for

  • Non English characters in BIP email

    Hi, my report contains Japanese characters, when I view the output in HTML format. It is displayed properly. But when I click on send button , enter email parameters like to, cc, bcc, subject , etc and send it, in the mail I receive, the japanese cha

  • Can not able to upload a build on App Store with new itunes connect interface.

    Hello , I am uploading a build to app store with the version number 1.2.1 with same bundle version . But after some time apple shows error as Redundant Binary Error. You are trying to upload a same build that is already on app store. So i change my a

  • Plz tell me how to use JSpinner with JTable

    I have retrieve records from database but as the number of records(rows) are more than 1000 , i want to use JSpinner with JTable . plz solve my problem by giving the appropriate code for the same.

  • Programatically set where clause or view criteria not working in managed bean

    I get a view using finditerator then then apply setwhere or view criteria but it does not filter the original rows. code is as follows DCIteratorBinding dcIter3 = ADFUtils.findIterator("PlanColorsIterator");     ViewObject cvo = dcIter3.getViewObject

  • Add a new hard-drive

    Hi, I need to install a new hard-drive in order to upgrade to Solaris 10. Solaris 8 is currently installed. If I do a probe-all while booting, I can see both hard-drives and the cdrom drive. But when I want to format the disk, it is not recognised (f