Skip to content

Commit

Permalink
master #11 fix type.SDMXType
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed May 25, 2014
1 parent 34d5bea commit 7d14c59
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions R/SDMXType-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ SDMXType <- function(xmlObj){
}

type.SDMXType <- function(xmlObj){
r <- xmlRoot(xmlObj);
type <-strsplit(xmlName(xmlRoot(xmlObj), full=T), ":")[[1]][2]
type <- xmlName(xmlRoot(xmlObj))
if(attr(regexpr(":", type, ignore.case = T),"match.length") > 0){
type <-strsplit(xmlName(xmlRoot(xmlObj), full=T), ":")[[1]][2]
}
res <- paste("SDMX", type, sep="");
return(res)
}
Expand Down

0 comments on commit 7d14c59

Please sign in to comment.