[LON-CAPA-users] Importing .problem in a problem

Gerd Kortemeyer korte at lite.msu.edu
Fri Feb 22 15:46:16 EST 2013


Hi,

On Feb 22, 2013, at 4:10 AM, Al Cone <tal_cone at web.de> wrote:

> 
> I try to build a .problem, that import other .problem’s. So that I can create a dynamic .problem, that contain static .problem’s.  I know it’s possible by using library’s, however I want use already existing .problem’s.
> 
> Because a .problem can’t have more than one <problem>-tag, it's a little bit difficult.
> 
>  
> 
>  My present Idea… Get the XML-Code from a .problem as a string and filter the <problem>-tag with regular expression.

Don't do that! It will definitely break! All the internal identifiers will be messed up, it cannot keep track anymore.

> 
> Is there a way to get the XML-Code from a .problem as a String? Or is there another way for my request?
> 


Why do you want a .problem inside a .problem? Maybe there's a better way.

- Gerd.





More information about the LON-CAPA-users mailing list