Questions tagged [sgml]

Standard Generalized Markup Language (SGML) is the precursor to XML and HTML. It is an ISO standard (ISO 8879) that was used for electronic publishing of documents and books.

Standard Generalized Markup Language (SGML) is the precursor to XML and HTML. It is an ISO standard (ISO 8879) that was used for electronic publishing of documents and books.


Useful links

134 questions
0
votes
1 answer

How can I use the sgml npm library to parse OFX files

I'm trying to use the npm SGML library here to parse OFX data. OFX v1-1.6 are based on SGML, and later version on XML. My plan thus far is to use SGML to convert all OFX files into fully normalised XML (proper end tags etc) and the use the xml2json…
Dennip
  • 3
  • 2
0
votes
1 answer

I need to extract this uid from a .sgm file

I need to extract the uid from a .sgm file, I tried the below code but it doesn't, work can anybody help? Sample .sgm file content: Kimbell Tiger…
0
votes
1 answer

SGML DTD - how to define a section as CDATA or RCDATA?

I was told in this post that an SGML DTD could be the solution to my issue. I have the XSD below. How do I convert this to an SGML DTD to have the "RawPayload" element tagged as CDATA in spawned blank/empty XML files?
Jonesome Reinstate Monica
  • 6,618
  • 11
  • 65
  • 112
0
votes
0 answers

When there are not enough constraint descriptions in XML Document Type Description, what happens and how does it look like?

I am having some trouble understanding the constraints in XML as I am still a beginner in XML. I am not exactly sure what would happen if not enough constraint descriptions are given to the XML Document Type Definition. Please give me a few examples…
LilyPod
  • 1
  • 1
0
votes
2 answers

Are DTD external unparsed entities and notations used in the wild?

DTDs provide a mechanism for referencing external entities of arbitrary formats, thus allowing SGML and XML files to link to any file with a URI without creating a custom mechanism for that. So, for example, one could specify in a DTD:
IS4
  • 11,945
  • 2
  • 47
  • 86
0
votes
0 answers

Is the doctype declaration HTML or SGML?

Doctype declaration is not a HTML tag nor element, but is it HTML code? Some of my peers told me it is HTML still because it is part of a HTML document, but others told me it is instead something called SGML. Can someone please clarify?
0
votes
1 answer

Is there a way to have ANY element be able to place anywhere within a SGML DTD?

I am building a DTD for a tool that will modify only attributes. I do not care if it is DTD compliant. I am looking to have ANY element be able to be a child of any other element. Just to keep the parser from modifying the data set. Currently I have…
0
votes
1 answer

XPATH for all child nodes with different names

I have a parent element with various child elements that I need to keep a count on. The problem I'm having is each child element is different name, so everytime I use count(*) the numbering restarts. I need the numbering to go 1.1, 1.2, 1.3... The…
JenPann
  • 41
  • 7
0
votes
1 answer

Handle text data without tag using BeautifulSoup

B>DAY, Arbitrator: Under the jurisdiction of the United States Federal Government and the Federal Aviation Administration, the above grievance arbitration was submitted to **Joseph L. Daly, Arbitrator**, on August 15, 2017, at the Federal…
0
votes
2 answers

Querying Non-XML compliant structured data

As a data analyst, I am constantly running across files with structured data that are in some proprietary format and resist normal XML parsing. For example, I have an archive of about a hundred documents that all begin with this:
oxwilder
  • 756
  • 5
  • 14
0
votes
2 answers

Was HTML first implemented using SGML?

This is a question from a past exam paper. HTML was first impelmented using 1. C++ 2. Java 3. Standard Generalized Markup Language (SGML) 4. none of the above I think the answer to it is SGML because here on this link…
Charlie_K
  • 3
  • 2
0
votes
1 answer

Handle tag in python sgmllib

I'm trying to parse a page using my python script. But tag along with '&' is giving me trouble. Here the actual html. Simulation for 1st & 2nd path Now my handle_data…
Neo
  • 13,179
  • 18
  • 55
  • 80
0
votes
1 answer

Omnimark file processing fails

We have the omnimark script that takes 2gb sgml file size as input and output the file which is around 2.2 gb.The script is called from unix shell script and we are facing issues that sometimes script runs successfully and sometime it just aborted…
atif
  • 1,137
  • 7
  • 22
  • 35
0
votes
2 answers

Is 111 a valid HTML id attribute or are document.querySelector() and document.querySelectorAll() correctly throwing syntax errors?

Given const div = document.createElement("div"); div.id = 111; document.body.appendChild(div); try { console.log(document.querySelector("#111")); } catch(e) { console.error(e); /* Chromium: DOMException:…
guest271314
  • 1
  • 15
  • 104
  • 177
0
votes
1 answer

How to define a custom tag's properties in BeautifulSoup?

I have a SGML file that mixes tags that require closing and those that don't. BeautifulSoup can prettify this for HTML, but my tags are custom and BeautifulSoup just closes them in the end of the file. Here's the source: from bs4 import…
Anton Tarasenko
  • 8,099
  • 11
  • 66
  • 91
1 2 3
8 9