New answers tagged

0

If you are going to map from XML to a relational model, you will have to have a one to many relationship from the name to the phone numbers. You will also need a one to many from the name to the email addresses. Entity Relationship Diagram (ERD) Names would need a primary key (designated PK on the image) to be used as a foreign key (designated FK on the ...


0

I would suggest this difference is simply an anachronism from the age of HTML and LaTeX. HTML, having evolved out of SGML (as did Docbook), actually got a lot of it's structural elements (i.e. <h1>, etc) from IBM's GML/GMLguide languages. In GML, as with LaTeX, the focus of the language designers was on the presentation of content, rather than the ...


4

Which one is efficient? depends on your definition of efficient and on your data: Which kind of efficient do you mean: "less processing time", "less memory consumption", "less hours needed to implement or maintain"? I assume you mean "less processing time". The answer depends: if database contain 1 million rows and XML contain only two rows the first ...


5

To validate an XML file, you first need an XML Schema Definition (XSD) that describes the structure of a valid XML document. You can find the specification for XSD files at W3C. Going into how to build the XSD requires knowing how your XML should be structured. For detailed information about the actual Java implementation of this, check out What's the best ...


1

if you are open to a different option: you could try having a response/request pattern, where you[the request] calls a service[the response] and pass a network credential object [built into .net] then upon successful authentication pass back the xml though the service call public XElement GetXml(IProviderInformation input) { using (var svc = new ...


2

Storing the configuration of the program externally allows you to avoid needing to recompile the program when something changes. Switch from databaseA to databaseB? Modify the property file rather than modify the hard coded values and recompile from source. What's more, Java offers a class as part of its standard runtime environment that facilitates this - ...


1

You would put such variables in an XML file to make them configurable. In other words, you can change their values without recompiling the program. Further Reading XML configuration files How to easily load an XML based configuration file into a Java class


1

Because Android designers decided to implement it that way :) In principle, everything could be written in Java. Microsoft did it for WinForms: the form description is saved as the auto-generated *.designer.cs file (or a generated region in early version of .NET framework). Each method has its pros and cons. By storing the UI as XML, it may be easier to ...


5

Its because its simpler - tools can be written to manipulate a XML document far easier than understand java code, so the layout can be created and modified by a simple tool that does not need to also be a java parser. Its also easier for people to describe a layout in XML than in java directly. This technique is used by a lot of things, eg WSDL that ...


-1

HTML documents have pre-defined tags, whilst XML does not. Because the tags are defined, browsers can be made to render the display. A <BODY> tag has a specific meaning in HTML and is treated as such. Now consider this XML fragment: <BODY> <ARM></ARM> <EYECOLOR></EYECOLOR> </BODY> The <BODY> tag has a ...


0

Let's cut to the chase, we are talking about mark-up languages and how they are displayed in a browser. HTML is data coupled with the instructions on how to display the data. Other technologies such as CSS and Javascript, can be used to make changes to the document after it is rendered in a browser. XML is primarily data, generally without instructions on ...


4

When your talking about rendering engines they are very different. For one thing, HTML documents have links to external resources, and are meant to present a way to navigate between pages. That's what "Hypertext" is. Word documents are meant to represent markup of a printed page. They are almost a typesetting tool. HTML has to work and relay the ...



Top 50 recent answers are included