Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Convert XML to DBF
Message
 
 
To
31/07/2017 12:54:25
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Miscellaneous
Thread ID:
01652918
Message ID:
01652927
Views:
43
>
><log4j:event logger="WorkOrdersApi.Filters.RequestLoggerFilter" timestamp="1475666070747" level="DEBUG" 
>thread="7"><log4j:message>Request recieved: Uri=/debug/version</log4j:message>
>
>
>The segment starts with
>
>log4j:event
>
>Then logger, timestamp, level, and thread are attributes within this segment. In the above there is not an ending to this segment; i.e.
>
>
</log4j:event>
>
>You can use DOM to extract the segments and then get a list of the attributes. In java this would be:
>
>
>var foo = document.getElementById('foo'),
>    attrs = foo.attributes,
>    i = attrs.length,
>    attr;
>
>while (i--)
>{
>    attr = attrs[i];
>    console.log(attr.name + '="' + attr.value + '"');
>}
>
>
>You can convert the above to VFP.

I left out the ending segment; I was just trying to show a sample of the XML file. I thought there is a function in VFP that would let me get this XML into a DBF without any code. But since there is none, I will download a Log4Net viewer from several online. Creating such a Log4Net viewer with VFP is possible given time and effort. But not by me :)
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform