Story24 hdf

Nobody required the DTD to be included in the actual HDF file. And why
would we want to 'generate' a DTD? The DTD is a static document defined by
us.

I don't understand what problem you are trying to solve here, could you
please elaborate?


On Sun, Jul 27, 2014 at 7:23 PM, Vishv19 <notifications@github.com> wrote:

> In app/routes/xmlBuilder.js:
>
> > +/*
> > + * Copyright (c) 2014, Fashiontec (http://fashiontec.org)
> > + * Licensed under LGPL, Version 3
> > + */
> > +
> > +/*
> > + * XML creation for the  HDF export feature of bodyapps backend.
> > + *
> > + * XML is created using 'xmlbuilder' module
> > + */
> > +
> > +var builder = require('xmlbuilder');
> > +
> > +exports.returnXML = function (measurement, user, fileNameList) {
> > +  var doc = builder.create('hdf', {'version': '1.0', 'encoding': 'UTF-8'})
> > +    .dtd('hdf.dtd')
>
> I have searched for few modules to create DTD. But it seems that I could
> only create a internal DTD in the XML itself using 'xmlbuilder'.
> So I have two options:
> (1) Either add internal set of DTD in xml file.
> (2) I refer DTD from the filesystem and add it to HDF record?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/fashiontec/bodyapps-service/pull/19/files#r15438902>.
>



-- 
*joerg henning /* software developer & scrum master
mobile: +84 128 336 2461
skype: henning.joerg